org.semanticweb.HermiT.datatypes.owlreal
Class NumberInterval
java.lang.Object
org.semanticweb.HermiT.datatypes.owlreal.NumberInterval
public class NumberInterval
- extends Object
Method Summary |
boolean |
containsNumber(Number number)
|
void |
enumerateNumbers(Collection<Object> numbers)
|
NumberInterval |
intersectWith(NumberInterval that)
Computes the intersection of this interval with the supplied one. |
protected boolean |
isEqual(NumberRange baseRange,
NumberRange excludedRange,
Number lowerBound,
BoundType lowerBoundType,
Number upperBound,
BoundType upperBoundType)
|
protected static boolean |
isIntervalEmpty(NumberRange baseRange,
NumberRange excludedRange,
Number lowerBound,
BoundType lowerBoundType,
Number upperBound,
BoundType upperBoundType)
|
int |
subtractSizeFrom(int argument)
Subtracts from the given argument the number of distinct objects that are contained in this interval. |
String |
toString()
|
m_baseRange
protected final NumberRange m_baseRange
m_excludedRange
protected final NumberRange m_excludedRange
m_lowerBound
protected final Number m_lowerBound
m_lowerBoundType
protected final BoundType m_lowerBoundType
m_upperBound
protected final Number m_upperBound
m_upperBoundType
protected final BoundType m_upperBoundType
NumberInterval
public NumberInterval(NumberRange baseRange,
NumberRange excludedRange,
Number lowerBound,
BoundType lowerBoundType,
Number upperBound,
BoundType upperBoundType)
intersectWith
public NumberInterval intersectWith(NumberInterval that)
- Computes the intersection of this interval with the supplied one. If the two intervals
do not intersect, the result is null.
isEqual
protected boolean isEqual(NumberRange baseRange,
NumberRange excludedRange,
Number lowerBound,
BoundType lowerBoundType,
Number upperBound,
BoundType upperBoundType)
subtractSizeFrom
public int subtractSizeFrom(int argument)
- Subtracts from the given argument the number of distinct objects that are contained in this interval.
If the interval contains more objects than argument, the result is zero.
containsNumber
public boolean containsNumber(Number number)
enumerateNumbers
public void enumerateNumbers(Collection<Object> numbers)
isIntervalEmpty
protected static boolean isIntervalEmpty(NumberRange baseRange,
NumberRange excludedRange,
Number lowerBound,
BoundType lowerBoundType,
Number upperBound,
BoundType upperBoundType)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012. All Rights Reserved.