|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.print.attribute.IntegerSyntax
public abstract class IntegerSyntax
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected IntegerSyntax(int value)
IntegerSyntax with the given value.
value - the integer to set
protected IntegerSyntax(int value,
int lowerBound,
int upperBound)
IntegerSyntax with the given integer value
and checks if the value lies inside the given bounds..
value - the integer to setlowerBound - the lower bound for the valueupperBound - the upper bound for the value
IllegalArgumentException - if value < lowerBound
or value > upperBound| Method Detail |
|---|
public int getValue()
public boolean equals(Object obj)
equals in class Objectobj - the object to test
true if both objects are equal,
false otherwise.Object.hashCode()public int hashCode()
hashCode in class ObjectObject.equals(Object),
System.identityHashCode(Object)public String toString()
toString in class ObjectObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||