Package com.avsystem.anjay
Class AnjayObject.ResourceDef
- java.lang.Object
-
- com.avsystem.anjay.AnjayObject.ResourceDef
-
- All Implemented Interfaces:
java.lang.Comparable<AnjayObject.ResourceDef>
- Enclosing interface:
- AnjayObject
public static final class AnjayObject.ResourceDef extends java.lang.Object implements java.lang.Comparable<AnjayObject.ResourceDef>
Object's Resource definition.
-
-
Field Summary
Fields Modifier and Type Field Description AnjayObject.ResourceKindkindKind of the resource, indicating allowed operations on resource.booleanpresentIndicates if the resource is currently present.intridResource ID.
-
Constructor Summary
Constructors Constructor Description ResourceDef(int rid, AnjayObject.ResourceKind kind, boolean present)Creates Resource definition object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(AnjayObject.ResourceDef other)Compares this object with the specified object for order.booleanequals(java.lang.Object other)Checks if this object and the specified object are equal.inthashCode()Returns hash code value of the object.
-
-
-
Field Detail
-
rid
public final int rid
Resource ID.
-
kind
public final AnjayObject.ResourceKind kind
Kind of the resource, indicating allowed operations on resource.
-
present
public final boolean present
Indicates if the resource is currently present.
-
-
Constructor Detail
-
ResourceDef
public ResourceDef(int rid, AnjayObject.ResourceKind kind, boolean present)Creates Resource definition object.- Parameters:
rid- Resource ID.kind- Resource kind.present- True if resource is present.
-
-
Method Detail
-
compareTo
public int compareTo(AnjayObject.ResourceDef other)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.- Specified by:
compareToin interfacejava.lang.Comparable<AnjayObject.ResourceDef>
-
equals
public boolean equals(java.lang.Object other)
Checks if this object and the specified object are equal.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Returns hash code value of the object.- Overrides:
hashCodein classjava.lang.Object
-
-