gnu.mapping
Class KeyPair
java.lang.Object
gnu.mapping.KeyPair
- All Implemented Interfaces:
- EnvironmentKey
public class KeyPair
- extends java.lang.Object
- implements EnvironmentKey
A simple concrete implemementation of EnvironmentKey
.
Constructor Summary |
KeyPair(Symbol name,
java.lang.Object property)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
KeyPair
public KeyPair(Symbol name,
java.lang.Object property)
getKeySymbol
public Symbol getKeySymbol()
- Specified by:
getKeySymbol
in interface EnvironmentKey
getKeyProperty
public java.lang.Object getKeyProperty()
- Specified by:
getKeyProperty
in interface EnvironmentKey
matches
public final boolean matches(EnvironmentKey key)
- Specified by:
matches
in interface EnvironmentKey
matches
public final boolean matches(Symbol symbol,
java.lang.Object property)
- Specified by:
matches
in interface EnvironmentKey
equals
public boolean equals(java.lang.Object x)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object