com.counterclaim.openefm.model.id
Class StringIdImpl

java.lang.Object
  extended bycom.counterclaim.openefm.model.id.StringIdImpl
All Implemented Interfaces:
java.lang.Comparable, Id, java.io.Serializable

public class StringIdImpl
extends java.lang.Object
implements Id, java.io.Serializable

See Also:
Serialized Form
 

Field Summary
private  java.lang.String id
           
private static org.apache.log4j.Logger log
           
 
Constructor Summary
StringIdImpl(java.lang.String id)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object obj)
          Note: in this and in 'compareTo()', we expect the Id implementation to be consistent system-wide, so we cast to the specific type.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static org.apache.log4j.Logger log

id

private java.lang.String id
Constructor Detail

StringIdImpl

public StringIdImpl(java.lang.String id)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Note: in this and in 'compareTo()', we expect the Id implementation to be consistent system-wide, so we cast to the specific type. So the ClassCastException should really be considered an error, even though we trap it here.


compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

hashCode

public int hashCode()

toString

public java.lang.String toString()
Returns:
a string representation of the object.


Copyright © 2002 counterclaim.com. All Rights Reserved.