public class ContinuousRealInterval extends Object
Title: owl:real Interval
Description: An immutable interval representation supporting continuous
(decimal and rational) number lines in owl:real value space.
Copyright: Copyright (c) 2009
Company: Clark & Parsia, LLC.
| Constructor and Description |
|---|
ContinuousRealInterval(Number point)
Create a point interval.
|
ContinuousRealInterval(Number lower,
Number upper,
boolean inclusiveLower,
boolean inclusiveUpper)
Create an interval.
|
| Modifier and Type | Method and Description |
|---|---|
static ContinuousRealInterval |
allReals() |
boolean |
boundLower() |
boolean |
boundUpper() |
boolean |
canUnionWith(ContinuousRealInterval other) |
IntervalRelations |
compare(ContinuousRealInterval other) |
boolean |
contains(Number n) |
boolean |
equals(Object obj) |
Number |
getLower() |
Number |
getUpper() |
ContinuousRealInterval |
greater(Number n)
Get the subinterval greater than n
|
int |
hashCode() |
boolean |
inclusiveLower() |
boolean |
inclusiveUpper() |
ContinuousRealInterval |
intersection(ContinuousRealInterval that) |
boolean |
isPoint() |
ContinuousRealInterval |
less(Number n)
Get the subinterval less than n
|
List<ContinuousRealInterval> |
remove(ContinuousRealInterval other) |
Number |
size() |
String |
toString() |
List<ContinuousRealInterval> |
union(ContinuousRealInterval other) |
Iterator<Number> |
valueIterator() |
public ContinuousRealInterval(Number point)
#OWLRealInterval(Number, Number, boolean, boolean) with arguments
point,point,true,truepoint - Value of point intervalpublic ContinuousRealInterval(Number lower, Number upper, boolean inclusiveLower, boolean inclusiveUpper)
null should be used to indicate unbound
(i.e., infinite intervals).lower - Interval lower boundupper - Interval upper boundinclusiveLower - true if lower bound is inclusive,
false for exclusive. Ignored if
lower == null.inclusiveUpper - true if upper bound is inclusive,
false for exclusive. Ignored if
upper == null.public static ContinuousRealInterval allReals()
public boolean boundLower()
public boolean boundUpper()
public boolean canUnionWith(ContinuousRealInterval other)
public IntervalRelations compare(ContinuousRealInterval other)
public boolean contains(Number n)
public Number getLower()
public Number getUpper()
public ContinuousRealInterval greater(Number n)
n - null if that intersection is emptypublic boolean inclusiveLower()
public boolean inclusiveUpper()
public ContinuousRealInterval intersection(ContinuousRealInterval that)
public boolean isPoint()
public ContinuousRealInterval less(Number n)
n - null if that intersection is emptypublic List<ContinuousRealInterval> remove(ContinuousRealInterval other)
public Number size()
public List<ContinuousRealInterval> union(ContinuousRealInterval other)
Copyright © 2019. All rights reserved.