edu.utah.janosvm.kit.util
Class Association
java.lang.Object
|
+--edu.utah.janosvm.kit.util.Association
- Direct Known Subclasses:
- AntiAssociation
- class Association
- extends java.lang.Object
Field Summary |
private java.lang.Object |
name
The identifier to associate with an object. |
private java.lang.Object |
obj
The object to associate with the above identifier. |
Constructor Summary |
Association()
Construct an empty Association to be filled in later. |
Association(java.lang.Object name,
java.lang.Object obj)
Construct an Association with the given values. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait, wait0 |
name
private java.lang.Object name
- The identifier to associate with an object.
obj
private java.lang.Object obj
- The object to associate with the above identifier.
Association
public Association()
- Construct an empty Association to be filled in later.
Association
public Association(java.lang.Object name,
java.lang.Object obj)
- Construct an Association with the given values.
- Parameters:
name
- The identifier to associate with an object.obj
- The object to associate with the above identifier.
setName
public void setName(java.lang.String name)
- Parameters:
name
- The value for this.name.
getName
public java.lang.Object getName()
- Returns:
- The value of this.name.
setObject
public void setObject(java.lang.Object obj)
- Parameters:
obj
- The value for this.obj.
getObject
public java.lang.Object getObject()
- Returns:
- The value of this.obj.
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
- Returns:
- The hashCode of this.name.
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
This documentation is Copyright (C) 2000-2003 The University of Utah. All Rights Reserved. See the documentation license for distribution terms and restrictions.
Documentation, software, and mailing lists for the JanosVM can be found at the Janos Project web page: http://www.cs.utah.edu/flux/janos/
Generated on Feb 13, 2003