gnu.mapping

Class KeyPair

Implemented Interfaces:
EnvironmentKey

public class KeyPair
extends java.lang.Object
implements EnvironmentKey

A simple concrete implemementation of EnvironmentKey.

Fields inherited from interface gnu.mapping.EnvironmentKey

FUNCTION

Constructor Summary

KeyPair(Symbol name, Object property)

Method Summary

boolean
equals(Object x)
Object
getKeyProperty()
Symbol
getKeySymbol()
int
hashCode()
boolean
matches(EnvironmentKey key)
boolean
matches(Symbol symbol, Object property)
String
toString()

Constructor Details

KeyPair

public KeyPair(Symbol name,
               Object property)

Method Details

equals

public boolean equals(Object x)

getKeyProperty

public Object getKeyProperty()
Specified by:
getKeyProperty in interface EnvironmentKey

getKeySymbol

public Symbol getKeySymbol()
Specified by:
getKeySymbol in interface EnvironmentKey

hashCode

public int hashCode()

matches

public final boolean matches(EnvironmentKey key)
Specified by:
matches in interface EnvironmentKey

matches

public final boolean matches(Symbol symbol,
                             Object property)
Specified by:
matches in interface EnvironmentKey

toString

public String toString()