declare namespace javax { namespace print { namespace attribute { /** * 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 {@link #getValue() * getValue()}. An integer attribute's integer value is * established when it is constructed (see {@link #IntegerSyntax(int) * IntegerSyntax(int)}). Once constructed, an integer attribute's * value is immutable. *
* @author David Mendenhall
* @author Alan Kaminsky
*/
// @ts-ignore
abstract class IntegerSyntax extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable {
/**
* Construct a new integer attribute with the given integer value.
* @param value Integer value.
*/
// @ts-ignore
constructor(value: number /*int*/)
/**
* Construct a new integer attribute with the given integer value, which
* must lie within the given range.
* @param value Integer value.
* @param lowerBound Lower bound.
* @param upperBound Upper bound.
* @exception IllegalArgumentException
* (Unchecked exception) Thrown if value
is less than
* lowerBound
or greater than
* upperBound
.
*/
// @ts-ignore
constructor(value: number /*int*/, lowerBound: number /*int*/, upperBound: number /*int*/)
/**
* Returns this integer attribute's integer value.
* @return the integer value
*/
// @ts-ignore
public getValue(): number /*int*/
/**
* 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
is equivalent to this integer
* attribute, false otherwise.
*/
// @ts-ignore
public equals(object: java.lang.Object | any): boolean
/**
* Returns a hash code value for this integer attribute. The hash code is
* just this integer attribute's integer value.
*/
// @ts-ignore
public hashCode(): number /*int*/
/**
* Returns a string value corresponding to this integer attribute. The
* string value is just this integer attribute's integer value converted to
* a string.
*/
// @ts-ignore
public toString(): string
}
}
}
}