com.croftsoft.core.util.id
Class LongId

java.lang.Object
  extended by com.croftsoft.core.util.id.LongId
All Implemented Interfaces:
Id, Serializable, Cloneable
Direct Known Subclasses:
SeriModelId

public class LongId
extends Object
implements Id

An Id implementation that uses a Long object as its value.

Since:
2000-04-20
Version:
$Id: LongId.java,v 1.3 2008/09/20 05:11:34 croft Exp $
See Also:
Serialized Form
Author:
David Wallace Croft

Constructor Summary
LongId(long l)
           
LongId(Long l)
          Main constructor.
LongId(String s)
           
 
Method Summary
 Object clone()
           
 boolean equals(Object other)
           
 Long getL()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LongId

public LongId(Long l)
Main constructor.

Throws:
NullArgumentException - If argument is null.

LongId

public LongId(long l)

LongId

public LongId(String s)
Method Detail

getL

public Long getL()

clone

public Object clone()
Specified by:
clone in interface Id
Overrides:
clone in class Object

equals

public boolean equals(Object other)
Specified by:
equals in interface Id
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Id
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)