|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.core.count.CountConstant
public class CountConstant
This class provides an implementation of a Count where no methods modifying the contents are available.
| Field Summary | |
|---|---|
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
protected long |
value
The field value contains the value of the count register. |
| Constructor Summary | |
|---|---|
CountConstant()
Creates a new object. |
|
CountConstant(FixedCount value)
Creates a new object. |
|
CountConstant(long value)
Creates a new object. |
|
| Method Summary | |
|---|---|
boolean |
eq(FixedCount count)
Compare the value for equality. |
boolean |
ge(FixedCount count)
Compare the value for a greater or equal value. |
long |
getValue()
Getter for the value |
boolean |
gt(FixedCount count)
Compare the value for a greater value. |
boolean |
le(FixedCount count)
Compare the value for a less or equal value. |
boolean |
lt(FixedCount count)
Compare the value for a lesser value. |
boolean |
ne(FixedCount count)
Compare the value for non-equality. |
java.lang.String |
toString()
Determine the printable representation of the object. |
void |
toString(java.lang.StringBuffer sb)
Determine the printable representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final long serialVersionUID
protected long value
| Constructor Detail |
|---|
public CountConstant(FixedCount value)
value - the value to be storedpublic CountConstant(long value)
value - the value to be storedpublic CountConstant()
| Method Detail |
|---|
public boolean eq(FixedCount count)
eq in interface FixedCountcount - the count to compare to
true iff count has an equal value to the current
oneFixedCount.eq( org.extex.core.count.FixedCount)public boolean ge(FixedCount count)
ge in interface FixedCountcount - the count to compare to
true iff count has an value greater or equal to the
current oneFixedCount.ge( org.extex.core.count.FixedCount)public long getValue()
getValue in interface FixedCountpublic boolean gt(FixedCount count)
gt in interface FixedCountcount - the count to compare to
true iff count has an value greater than the
current oneFixedCount.gt( org.extex.core.count.FixedCount)public boolean le(FixedCount count)
le in interface FixedCountcount - the count to compare to
true iff count has an value less or equal to the
current oneFixedCount.le( org.extex.core.count.FixedCount)public boolean lt(FixedCount count)
lt in interface FixedCountcount - the count to compare to
true iff count has an value less than the
current oneFixedCount.lt( org.extex.core.count.FixedCount)public boolean ne(FixedCount count)
ne in interface FixedCountcount - the count to compare to
true iff count has an value not equal to the
current oneFixedCount.ne( org.extex.core.count.FixedCount)public java.lang.String toString()
toString in interface FixedCounttoString in class java.lang.ObjecttoString(StringBuffer),
Object.toString()public void toString(java.lang.StringBuffer sb)
toString in interface FixedCountsb - the target string buffertoString(),
FixedCount.toString(java.lang.StringBuffer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||