javax.print.attribute
public abstract class IntegerSyntax extends Object implements Cloneable, Serializable
IntegerSyntax
is the abstract base class of all attribute
classes having an integer as value.
Constructor Summary | |
---|---|
protected | IntegerSyntax(int value)
Creates a IntegerSyntax with the given value.
|
protected | IntegerSyntax(int value, int lowerBound, int upperBound)
Creates a IntegerSyntax with the given integer value
and checks if the value lies inside the given bounds..
|
Method Summary | |
---|---|
boolean | equals(Object obj)
Tests if the given object is equal to this object.
|
int | getValue()
Returns the value of this object.
|
int | hashCode()
Returns the hashcode for this object.
|
String | toString()
Returns the string representation for this object.
|
IntegerSyntax
with the given value.
Parameters: value the integer to set
IntegerSyntax
with the given integer value
and checks if the value lies inside the given bounds..
Parameters: value the integer to set lowerBound the lower bound for the value upperBound the upper bound for the value
Throws: IllegalArgumentException if value < lowerBound or value > upperBound
Parameters: obj the object to test
Returns: true
if both objects are equal,
false
otherwise.
Returns: The integer value.
Returns: The hashcode.
Returns: The string representation.