xdc.services.getset
Class Field

java.lang.Object
  extended by xdc.services.getset.Field

public class Field
extends java.lang.Object

An immutable object that identifies a specific field of a specific XDCscript object. Used internally as a key to index an object-plus-field pair in a Set.


Constructor Summary
Field(xdc.services.intern.xsr.Value.Obj obj, java.lang.String name)
           
 
Method Summary
 boolean equals(java.lang.Object x)
          Two Field objects compare as equal() if they name the same field of the same XDCscript object instance.
 java.lang.String getName()
           
 xdc.services.intern.xsr.Value.Obj getObject()
           
 int hashCode()
          If objects compare equal, also return equal hash codes.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Field

public Field(xdc.services.intern.xsr.Value.Obj obj,
             java.lang.String name)
Method Detail

getObject

public xdc.services.intern.xsr.Value.Obj getObject()

getName

public java.lang.String getName()

equals

public boolean equals(java.lang.Object x)
Two Field objects compare as equal() if they name the same field of the same XDCscript object instance.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
If objects compare equal, also return equal hash codes. If objects are unequal, no requirement on hash codes.

Overrides:
hashCode in class java.lang.Object