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


Variable Index

 o NoKey

Constructor Index

 o Key()
 o Key(int)

Method Index

 o equals(Locker)
 o equals(Object)
 o invalidate()
 o toString()
 o valid()

Variables

 o NoKey
 public static Key NoKey

Constructors

 o Key
 public Key(int nInit)
Parameters:
nInit - the initial code
Returns:
Creates a key
 o Key
 public Key()
Returns:
Creates a key - should only be used by Marshall

Methods

 o 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
 o equals
 public boolean equals(Locker lkrAnother)
Parameters:
lkrAnother - a Locker
Returns:
compares the key and the Locker and returns true if they match
 o valid
 public boolean valid()
Returns:
returns true if the key is valid
 o invalidate
 public void invalidate()
Returns:
invalidates the key
 o 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