gnu.mapping
Class KeyPair

java.lang.Object
  extended by gnu.mapping.KeyPair
All Implemented Interfaces:
EnvironmentKey

public class KeyPair
extends java.lang.Object
implements EnvironmentKey

A simple concrete implemementation of EnvironmentKey.


Field Summary
 
Fields inherited from interface gnu.mapping.EnvironmentKey
FUNCTION
 
Constructor Summary
KeyPair(Symbol name, java.lang.Object property)
           
 
Method Summary
 boolean equals(java.lang.Object x)
           
 java.lang.Object getKeyProperty()
           
 Symbol getKeySymbol()
           
 int hashCode()
           
 boolean matches(EnvironmentKey key)
           
 boolean matches(Symbol symbol, java.lang.Object property)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyPair

public KeyPair(Symbol name,
               java.lang.Object property)
Method Detail

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