|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jomc.sequences.Sequence
@Generated(value="org.jomc.tools.SourceFileProcessor 1.0", comments="See http://jomc.sourceforge.net/jomc/1.0/jomc-tools") public class Sequence extends Object implements Comparable<Sequence>, Cloneable, Serializable
Sequence of numbers.
Modifier and Type | Field and Description |
---|---|
static String |
PROP_INCREMENT
Constant for the name of property increment . |
static String |
PROP_MAXIMUM
Constant for the name of property maximum . |
static String |
PROP_MINIMUM
Constant for the name of property minimum . |
static String |
PROP_NAME
Constant for the name of property name . |
static String |
PROP_VALUE
Constant for the name of property value . |
Constructor and Description |
---|
Sequence()
Creates a new Sequence instance. |
Modifier and Type | Method and Description |
---|---|
Sequence |
clone()
Creates and returns a copy of this object. |
int |
compareTo(Sequence s)
Compares this sequence with the specified sequence for order. |
boolean |
equals(Object o)
Indicates whether some other object is equal to this one by comparing the values of properties name and
revision . |
long |
getDate()
Gets the date of the revision of the entity. |
long |
getIncrement()
Gets the delta to add to the value of property value for the next value in the sequence. |
long |
getMaximum()
Gets the maximum value of property value . |
long |
getMinimum()
Gets the minimum value of property value . |
String |
getName()
Gets the logical name of the sequence. |
long |
getRevision()
Gets the revision of the entity. |
long |
getValue()
Gets the current value of the sequence. |
int |
hashCode()
Returns a hash code value for this object. |
void |
setIncrement(long value)
Sets the delta to add to the value of property value for the next value in the sequence. |
void |
setMaximum(long value)
Sets the maximum value of property value . |
void |
setMinimum(long value)
Sets the minimum value of property value . |
void |
setName(String value)
Sets the logical name of the sequence. |
void |
setValue(long value)
Sets the current value of the sequence. |
String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String PROP_NAME
name
.
public static final String PROP_MINIMUM
minimum
.
public static final String PROP_MAXIMUM
maximum
.
public static final String PROP_INCREMENT
increment
.
public static final String PROP_VALUE
value
.
Constructor Detail |
---|
@Generated(value="org.jomc.tools.SourceFileProcessor 1.0", comments="See http://jomc.sourceforge.net/jomc/1.0/jomc-tools") public Sequence()
Sequence
instance.
Method Detail |
---|
public long getRevision()
public long getDate()
public String getName()
public void setName(String value)
value
- The new logical name of the sequence.public long getMinimum()
value
.
value
.public void setMinimum(long value)
value
.
value
- The new minimum value of property value
.public long getMaximum()
value
.
value
.public void setMaximum(long value)
value
.
value
- The new maximum value of property value
.public long getIncrement()
value
for the next value in the sequence.
value
for the next value in the sequence.public void setIncrement(long value)
value
for the next value in the sequence.
value
- The new delta to add to the value of property value
for the next value in the sequence.public long getValue()
public void setValue(long value)
value
- The current value of the sequence.public int compareTo(Sequence s)
Returns a negative integer, zero, or a positive integer as this sequence is less than, equal to, or greater than the specified sequence.
Note:
This class has a natural ordering that is inconsistent with equals.
compareTo
in interface Comparable<Sequence>
s
- The sequence to be compared.public Sequence clone()
clone
in class Object
public boolean equals(Object o)
name
and
revision
.
equals
in class Object
o
- The reference object with which to compare.true
if this object is the same as o
; false
otherwise.public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |