All Packages Class Hierarchy This Package Previous Next Index
Class ncsa.habanero.Key
java.lang.Object
|
+----ncsa.habanero.Key
- public class Key
- extends Object
- implements Marshallable
Key - a key to a Locker
-
NoKey
-
-
Key()
-
-
Key(int)
-
-
equals(Locker)
-
-
equals(Object)
-
-
invalidate()
-
-
toString()
-
-
valid()
-
NoKey
public static Key NoKey
Key
public Key(int nInit)
- Parameters:
- nInit - the initial code
- Returns:
- Creates a key
Key
public Key()
- Returns:
- Creates a key - should only be used by Marshall
equals
public boolean equals(Object another)
- Parameters:
- kAnother - another key
- Returns:
- compares the keys, and returns true if they are the same
- Overrides:
- equals in class Object
equals
public boolean equals(Locker lkrAnother)
- Parameters:
- lkrAnother - a Locker
- Returns:
- compares the key and the Locker and returns true if they match
valid
public boolean valid()
- Returns:
- returns true if the key is valid
invalidate
public void invalidate()
- Returns:
- invalidates the key
toString
public String toString()
- Returns:
- Converts a key to a string
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index