Package com.sun.msv.datatype.xsd
Class IntegerValueType
java.lang.Object
java.lang.Number
com.sun.msv.datatype.xsd.IntegerValueType
- All Implemented Interfaces:
Serializable
,Comparable
Value object of "integer" type.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
private final String
canonical representation of absolute value of integer BNF of canonical representation canonical_integer := "0" | nonzero nonzero := '-'? ["1"-"9"] ["0"-"9"]* -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
IntegerValueType
(long v) private
IntegerValueType
(String canonicalizedValue) internal use only: construct object from canonicalized value -
Method Summary
Modifier and TypeMethodDescriptionint
static IntegerValueType
translates non-canonicalized representation of an integer into an IntegerValueType.static IntegerValueType
create
(BigInteger bi) translates a BigInteger to an IntegerValueType.double
boolean
float
int
hashCode()
int
intValue()
boolean
returns true if the value if negative (less than zero)boolean
returns true if the value if non-negative (greater than or equal to zero)boolean
returns true if the value if non-positive (less than or equal to zero)boolean
returns true if the value if positive (greater than zero)long
int
converts to BigInteger.toString()
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
value
canonical representation of absolute value of integer BNF of canonical representation canonical_integer := "0" | nonzero nonzero := '-'? ["1"-"9"] ["0"-"9"]* -
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
IntegerValueType
internal use only: construct object from canonicalized value -
IntegerValueType
private IntegerValueType(long v)
-
-
Method Details
-
create
translates a BigInteger to an IntegerValueType. -
create
translates non-canonicalized representation of an integer into an IntegerValueType.- Returns:
- null when the parameter is not even valid with respect to the lexical space of "integer" type specified in XML Schema datatype spec.
-
compareTo
- Specified by:
compareTo
in interfaceComparable
- Returns:
- 1 if this value is bigger than rhs 0 if the values are the same -1 if rhs is bigger than this.
-
equals
-
hashCode
public int hashCode() -
toString
-
precision
public int precision() -
isNonPositive
public boolean isNonPositive()returns true if the value if non-positive (less than or equal to zero) -
isPositive
public boolean isPositive()returns true if the value if positive (greater than zero) -
isNegative
public boolean isNegative()returns true if the value if negative (less than zero) -
isNonNegative
public boolean isNonNegative()returns true if the value if non-negative (greater than or equal to zero) -
toBigInteger
converts to BigInteger. -
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classNumber
-
floatValue
public float floatValue()- Specified by:
floatValue
in classNumber
-
intValue
public int intValue() -
longValue
public long longValue()
-