|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.clarkparsia.pellet.datatypes.FloatingPointInterval<T>
public class FloatingPointInterval<T extends java.lang.Number & java.lang.Comparable<T>>
Title: Floating Point Interval
Description: An immutable interval representation supporting the value space of floating point numbers.
Copyright: Copyright (c) 2009
Company: Clark & Parsia, LLC.
Nested Class Summary | |
---|---|
class |
FloatingPointInterval.ValueIterator
|
Constructor Summary | |
---|---|
FloatingPointInterval(FloatingPointType<T> type,
T point)
Create a point interval. |
|
FloatingPointInterval(FloatingPointType<T> type,
T lower,
T upper)
Create an interval. |
Method Summary | ||
---|---|---|
boolean |
canUnionWith(FloatingPointInterval<T> other)
|
|
boolean |
contains(T n)
|
|
boolean |
equals(java.lang.Object obj)
|
|
T |
getLower()
|
|
T |
getUpper()
|
|
FloatingPointInterval<T> |
greater(T n)
Get the subinterval greater than n |
|
int |
hashCode()
|
|
FloatingPointInterval<T> |
intersection(FloatingPointInterval<T> that)
|
|
FloatingPointInterval<T> |
less(T n)
Get the subinterval less than n |
|
java.util.List<FloatingPointInterval<T>> |
remove(FloatingPointInterval<T> other)
|
|
java.lang.Number |
size()
|
|
static
|
unconstrained(FloatingPointType<U> type)
|
|
java.util.List<FloatingPointInterval<T>> |
union(FloatingPointInterval<T> other)
|
|
java.util.Iterator<T> |
valueIterator()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FloatingPointInterval(FloatingPointType<T> type, T point)
#IEEEFloatInterval(Float, Float)
with arguments
point,point,true,true
point
- Value of point intervalpublic FloatingPointInterval(FloatingPointType<T> type, T lower, T upper)
lower
- Interval lower boundupper
- Interval upper boundMethod Detail |
---|
public static <U extends java.lang.Number & java.lang.Comparable<U>> FloatingPointInterval<U> unconstrained(FloatingPointType<U> type)
public boolean canUnionWith(FloatingPointInterval<T> other)
public boolean contains(T n)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public T getLower()
public T getUpper()
public FloatingPointInterval<T> greater(T n)
n
-
null
if that intersection is emptypublic int hashCode()
hashCode
in class java.lang.Object
public FloatingPointInterval<T> intersection(FloatingPointInterval<T> that)
public FloatingPointInterval<T> less(T n)
n
-
null
if that intersection is emptypublic java.util.List<FloatingPointInterval<T>> remove(FloatingPointInterval<T> other)
public java.lang.Number size()
public java.util.List<FloatingPointInterval<T>> union(FloatingPointInterval<T> other)
public java.util.Iterator<T> valueIterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |