Class AnjayObject.ResourceDef

    • Field Summary

      Fields 
      Modifier and Type Field Description
      AnjayObject.ResourceKind kind
      Kind of the resource, indicating allowed operations on resource.
      boolean present
      Indicates if the resource is currently present.
      int rid
      Resource ID.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(AnjayObject.ResourceDef other)
      Compares this object with the specified object for order.
      boolean equals​(java.lang.Object other)
      Checks if this object and the specified object are equal.
      int hashCode()
      Returns hash code value of the object.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • rid

        public final int rid
        Resource ID.
      • 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:
        compareTo in interface java.lang.Comparable<AnjayObject.ResourceDef>
      • equals

        public boolean equals​(java.lang.Object other)
        Checks if this object and the specified object are equal.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Returns hash code value of the object.
        Overrides:
        hashCode in class java.lang.Object