com.croftsoft.core.util.id
Class LongId
java.lang.Object
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
LongId
public LongId(Long l)
- Main constructor.
- Throws:
NullArgumentException
- If argument is null.
LongId
public LongId(long l)
LongId
public LongId(String s)
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 Core Javadoc (2008-09-28 20:58:02)