java.lang.Object | |
↳ | javax.print.attribute.IntegerSyntax |
![]() |
Class IntegerSyntax is an abstract base class providing the common implementation of all attributes with integer values.
Under the hood, an integer attribute is just an integer. You can get an
integer attribute's integer value by calling
. An integer attribute's integer value is
established when it is constructed (see getValue()
). Once constructed, an integer attribute's
value is immutable.
IntegerSyntax(int)
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new integer attribute with the given integer value.
| |||||||||||
Construct a new integer attribute with the given integer value, which
must lie within the given range.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns whether this integer attribute is equivalent to the passed in
object.
| |||||||||||
Returns this integer attribute's integer value.
| |||||||||||
Returns a hash code value for this integer attribute.
| |||||||||||
Returns a string value corresponding to this integer attribute.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Construct a new integer attribute with the given integer value.
value | Integer value. |
---|
Construct a new integer attribute with the given integer value, which must lie within the given range.
value | Integer value. |
---|---|
lowerBound | Lower bound. |
upperBound | Upper bound. |
IllegalArgumentException | (Unchecked exception) Thrown if value is less than
lowerBound or greater than
upperBound .
|
---|
Returns whether this integer attribute is equivalent to the passed in object. To be equivalent, all of the following conditions must be true:
object
is not null.
object
is an instance of class IntegerSyntax.
object
's value are
equal.
object | Object to compare to. |
---|
object
is equivalent to this integer
attribute, false otherwise.
Returns this integer attribute's integer value.
Returns a hash code value for this integer attribute. The hash code is just this integer attribute's integer value.
Returns a string value corresponding to this integer attribute. The string value is just this integer attribute's integer value converted to a string.