xxl.collections
Class Container.Id

java.lang.Object
  |
  +--xxl.collections.Container.Id

public class Container.Id
extends java.lang.Object

The Id is used as a primary key in the map to identify objects.


Field Summary
protected  java.lang.Object id
           
 
Constructor Summary
Container.Id(java.lang.Object id)
          Creates a new Id.
 
Method Summary
 Container container()
          Returns a reference to the container belonging to the id.
 boolean equals(java.lang.Object object)
          Indicates whether some other object is "equal to" this one.
 void fix()
          Calls Container.this.fix(id()).
 java.lang.Object get()
          Calls Container.this.get(id()).
 int hashCode()
          Returns a hash code value for the object.
 java.lang.Object id()
          Returns id.
 void remove()
          Calls Container.this.remove(id()).
 void unfix()
          Calls Container.this.unfix(id()).
 void update(java.lang.Object object)
          Calls Container.this.update(id(),object).
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected final java.lang.Object id
Constructor Detail

Container.Id

public Container.Id(java.lang.Object id)
Creates a new Id.
Method Detail

container

public Container container()
Returns a reference to the container belonging to the id.

id

public java.lang.Object id()
Returns id.

fix

public void fix()
         throws java.util.NoSuchElementException
Calls
Container.this.fix(id())
.

unfix

public void unfix()
           throws java.util.NoSuchElementException
Calls
Container.this.unfix(id())
.

get

public java.lang.Object get()
                     throws java.util.NoSuchElementException
Calls
Container.this.get(id())
.

update

public void update(java.lang.Object object)
            throws java.util.NoSuchElementException
Calls
Container.this.update(id(),object)
.

remove

public void remove()
            throws java.util.NoSuchElementException
Calls
Container.this.remove(id())
.

equals

public boolean equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one.
Overrides:
equals in class java.lang.Object

hashCode

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