org.nakedobjects.metamodel.adapter.version
Class SerialNumberVersion
java.lang.Object
org.nakedobjects.metamodel.adapter.version.VersionUserAbstract
org.nakedobjects.metamodel.adapter.version.VersionUserAndTimeAbstract
org.nakedobjects.metamodel.adapter.version.SerialNumberVersion
- All Implemented Interfaces:
- Version, Encodable
public class SerialNumberVersion
- extends VersionUserAndTimeAbstract
|
Method Summary |
boolean |
different(Version version)
Compares this version against the specified version and returns true if they are different versions. |
void |
encode(DataOutputExtended output)
Returns the domain object's value as an encoded byte array via the encoder. |
boolean |
equals(java.lang.Object obj)
|
long |
getSequence()
|
int |
hashCode()
|
java.lang.String |
sequence()
Returns the sequence for printing/display |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SerialNumberVersion
public SerialNumberVersion(long number,
java.lang.String user,
java.util.Date time)
SerialNumberVersion
public SerialNumberVersion(DataInputExtended input)
throws java.io.IOException
- Throws:
java.io.IOException
encode
public void encode(DataOutputExtended output)
throws java.io.IOException
- Description copied from interface:
Encodable
- Returns the domain object's value as an encoded byte array via the encoder.
- Specified by:
encode in interface Encodable- Overrides:
encode in class VersionUserAndTimeAbstract
- Throws:
java.io.IOException
getSequence
public long getSequence()
sequence
public java.lang.String sequence()
- Description copied from interface:
Version
- Returns the sequence for printing/display
different
public boolean different(Version version)
- Description copied from interface:
Version
- Compares this version against the specified version and returns true if they are different versions.
This is use for optimistic checking, where the existence of a different version will normally cause a
concurrency exception.
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.