org.extex.core.count
Interface FixedCount

All Known Implementing Classes:
Count, CountConstant

public interface FixedCount

This interface describes the features of a Count which do not modify the value.

Version:
$Revision:4399 $
Author:
Gerd Neugebauer

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.
 

Method Detail

eq

boolean eq(FixedCount count)
Compare the value for equality.

Parameters:
count - the count to compare to
Returns:
true iff count has an equal value to the current one

ge

boolean ge(FixedCount count)
Compare the value for a greater or equal value.

Parameters:
count - the count to compare to
Returns:
true iff count has an value greater or equal to the current one

getValue

long getValue()
Getter for the value

Returns:
the value

gt

boolean gt(FixedCount count)
Compare the value for a greater value.

Parameters:
count - the count to compare to
Returns:
true iff count has an value greater than the current one

le

boolean le(FixedCount count)
Compare the value for a less or equal value.

Parameters:
count - the count to compare to
Returns:
true iff count has an value less or equal to the current one

lt

boolean lt(FixedCount count)
Compare the value for a lesser value.

Parameters:
count - the count to compare to
Returns:
true iff count has an value less than the current one

ne

boolean ne(FixedCount count)
Compare the value for non-equality.

Parameters:
count - the count to compare to
Returns:
true iff count has an value not equal to the current one

toString

java.lang.String toString()
Determine the printable representation of the object. The value returned is exactly the string which would be produced by TeX to print the Count.

Overrides:
toString in class java.lang.Object
Returns:
the printable representation
See Also:
toString(StringBuffer)

toString

void toString(java.lang.StringBuffer sb)
Determine the printable representation of the object. The value returned is exactly the string which would be produced by TeX to print the Count.

Parameters:
sb - the target string buffer
See Also:
toString()