com.ds.fw.types
Interface FwAssociationIF

All Superinterfaces:
java.lang.Cloneable, FwCopyableIF, FwDisplayableIF, FwSimpleObjectIF, java.io.Serializable
All Known Implementing Classes:
FwAssociation

public interface FwAssociationIF
extends FwSimpleObjectIF

I am used to represent simple key/value pairs for various implementations which do not need a more specialized implementation but which not not readily fit into a pattern that can utilize a Map.


Method Summary
 java.lang.Object getKey()
          Gets the key
 java.lang.Object getValue()
          Gets the value
 boolean hasKey(java.lang.Object o)
          Check for a given key
 boolean hasValue(java.lang.Object o)
          Check for a given value
 void setKey(java.lang.Object o)
          Sets the key
 void setValue(java.lang.Object o)
          Sets the value
 
Methods inherited from interface com.ds.fw.types.FwSimpleObjectIF
getClassName, getClone, getCopy, getCopy, getDeepCopy, getDisplayString, getDisplayStringFor, postCopy, toString, toStringValue
 

Method Detail

getKey

public java.lang.Object getKey()
Gets the key


setKey

public void setKey(java.lang.Object o)
Sets the key


hasKey

public boolean hasKey(java.lang.Object o)
Check for a given key


getValue

public java.lang.Object getValue()
Gets the value


setValue

public void setValue(java.lang.Object o)
Sets the value


hasValue

public boolean hasValue(java.lang.Object o)
Check for a given value