Package org.jivesoftware.smack.datatypes
Class Scalar
- java.lang.Object
-
- java.lang.Number
-
- org.jivesoftware.smack.datatypes.Scalar
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.CharSequence
,DefaultCharSequence
public abstract class Scalar extends java.lang.Number implements DefaultCharSequence
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Scalar(java.lang.Number number)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description double
doubleValue()
boolean
equals(java.lang.Object other)
float
floatValue()
abstract Scalar
getMaxValue()
abstract Scalar
getMinValue()
abstract int
hashCode()
abstract Scalar
incrementedByOne()
int
intValue()
long
longValue()
java.lang.Number
number()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.util.DefaultCharSequence
charAt, length, subSequence
-
-
-
-
Constructor Detail
-
Scalar
protected Scalar(java.lang.Number number)
-
-
Method Detail
-
number
public final java.lang.Number number()
-
intValue
public final int intValue()
- Specified by:
intValue
in classjava.lang.Number
-
longValue
public final long longValue()
- Specified by:
longValue
in classjava.lang.Number
-
floatValue
public final float floatValue()
- Specified by:
floatValue
in classjava.lang.Number
-
doubleValue
public final double doubleValue()
- Specified by:
doubleValue
in classjava.lang.Number
-
hashCode
public abstract int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
toString
public final java.lang.String toString()
- Specified by:
toString
in interfacejava.lang.CharSequence
- Overrides:
toString
in classjava.lang.Object
-
getMinValue
public abstract Scalar getMinValue()
-
getMaxValue
public abstract Scalar getMaxValue()
-
incrementedByOne
public abstract Scalar incrementedByOne()
-
-