org.jcon.data
Class ToStringIndex

java.lang.Object
  extended by org.jcon.data.ToStringIndex
All Implemented Interfaces:
LookupIndex

public class ToStringIndex
extends java.lang.Object
implements LookupIndex

A LookupIndex that indexes according to the output of toString().

Author:
Paul Reavis

Constructor Summary
ToStringIndex()
           
 
Method Summary
 java.lang.Object keyOf(java.lang.Object victim)
          Returns a lookup key for the given object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToStringIndex

public ToStringIndex()
Method Detail

keyOf

public java.lang.Object keyOf(java.lang.Object victim)
Description copied from interface: LookupIndex
Returns a lookup key for the given object. This key can be stored and used to lookup the object at a later time.

Specified by:
keyOf in interface LookupIndex