|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.clarkparsia.pellet.datatypes.types.floating.IEEEDoubleType
public class IEEEDoubleType
Title: IEEE Double Type
Description: Implementation of FloatingPointType
to support
xsd:double
Copyright: Copyright (c) 2009
Company: Clark & Parsia, LLC.
Method Summary | |
---|---|
java.lang.Double |
cast(java.lang.Object o)
Casts an object to the class described by this FloatingPointType object. |
java.lang.Double |
decrement(java.lang.Double n)
Return the next floating point value in the direction of -Inf |
static IEEEDoubleType |
getInstance()
|
java.lang.Double |
getNaN()
Gets the Not-a-Number constant for the type. |
java.lang.Double |
getNegativeInfinity()
Gets the negative infinity constant for the type. |
java.lang.Double |
getPositiveInfinity()
Gets the positive infinity constant for the type. |
java.lang.Double |
increment(java.lang.Double n)
Return the next floating point value in the direction of +Inf |
java.lang.Number |
intervalSize(java.lang.Double lower,
java.lang.Double upper)
Count the number of floating point values in an inclusive interval |
boolean |
isInstance(java.lang.Object o)
Determine if the specified Object is assignment compatible
with the object represented by this FloatingPointType . |
boolean |
isNaN(java.lang.Double f)
Returns true if this floating point value is a Not-a-Number
(NaN) value, false otherwise. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static IEEEDoubleType getInstance()
public java.lang.Double cast(java.lang.Object o)
FloatingPointType
FloatingPointType
object.
cast
in interface FloatingPointType<java.lang.Double>
o
- the object to cast
o
in the appropriate typepublic java.lang.Double decrement(java.lang.Double n)
FloatingPointType
-Inf.
- Specified by:
decrement
in interface FloatingPointType<java.lang.Double>
- Parameters:
n
- The value to decrement
- Returns:
- If
n > -Inf
, the next floating point value in the
direction of -Inf. If n == -Inf
,
-Inf
.
public java.lang.Double getNaN()
FloatingPointType
getNaN
in interface FloatingPointType<java.lang.Double>
T.NaN
public java.lang.Double getNegativeInfinity()
FloatingPointType
getNegativeInfinity
in interface FloatingPointType<java.lang.Double>
T.NEGATIVE_INFINITY
public java.lang.Double getPositiveInfinity()
FloatingPointType
getPositiveInfinity
in interface FloatingPointType<java.lang.Double>
T.POSITIVE_INFINITY
public java.lang.Double increment(java.lang.Double n)
FloatingPointType
+Inf.
- Specified by:
increment
in interface FloatingPointType<java.lang.Double>
- Parameters:
n
- The value to increment
- Returns:
- If
n < +Inf
, the next floating point value in the
direction of +Inf. If n == +Inf
,
+Inf
.
public java.lang.Number intervalSize(java.lang.Double lower, java.lang.Double upper)
FloatingPointType
intervalSize
in interface FloatingPointType<java.lang.Double>
lower
- The lower bound of the intervalupper
- The upper bound of the interval
lower.equals(upper)
, 1
. Else, the
number of floating point values between lower
and
upper
plus 2
public boolean isInstance(java.lang.Object o)
FloatingPointType
Object
is assignment compatible
with the object represented by this FloatingPointType
.
Typically implemented as a wrapper for
T.class.isInstance(Object)
.
isInstance
in interface FloatingPointType<java.lang.Double>
o
- the object to check
true
if o
is an instance of
T
, false
else.public boolean isNaN(java.lang.Double f)
FloatingPointType
true
if this floating point value is a Not-a-Number
(NaN) value, false
otherwise.
isNaN
in interface FloatingPointType<java.lang.Double>
f
- the value to be tested
true
if the argument is NaN, else false
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |