public class OWLRealInterval extends Object
Title: owl:real Interval
Description: An immutable interval representation supporting the
owl:real value space. Supports continuous (real) number lines,
discontinuous (real - integer) number lines, and discrete (integer) number
lines.
Copyright: Copyright (c) 2009
Company: Clark & Parsia, LLC.
| Modifier and Type | Class and Description |
|---|---|
static class |
OWLRealInterval.IntegerIterator |
static class |
OWLRealInterval.LineType |
| Constructor and Description |
|---|
OWLRealInterval(Number point)
Create a point interval.
|
OWLRealInterval(Number lower,
Number upper,
boolean inclusiveLower,
boolean inclusiveUpper,
OWLRealInterval.LineType type)
Create an interval.
|
| Modifier and Type | Method and Description |
|---|---|
static OWLRealInterval |
allIntegers() |
static OWLRealInterval |
allReals() |
boolean |
boundLower() |
boolean |
boundUpper() |
IntervalRelations |
compare(OWLRealInterval other) |
boolean |
contains(Number n) |
boolean |
equals(Object obj) |
Number |
getLower() |
OWLRealInterval.LineType |
getType() |
Number |
getUpper() |
OWLRealInterval |
greater(Number n)
Get the subinterval greater than n
|
int |
hashCode() |
boolean |
inclusiveLower() |
boolean |
inclusiveUpper() |
OWLRealInterval |
intersection(OWLRealInterval that) |
boolean |
isFinite() |
boolean |
isPoint() |
OWLRealInterval |
less(Number n)
Get the subinterval less than n
|
List<OWLRealInterval> |
remove(OWLRealInterval other) |
Number |
size() |
String |
toString() |
List<OWLRealInterval> |
union(OWLRealInterval other) |
Iterator<Number> |
valueIterator() |
public OWLRealInterval(Number point)
#OWLRealInterval(Number, Number, boolean, boolean) with arguments
point,point,true,truepoint - Value of point intervalpublic OWLRealInterval(Number lower, Number upper, boolean inclusiveLower, boolean inclusiveUpper, OWLRealInterval.LineType type)
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 OWLRealInterval allIntegers()
public static OWLRealInterval allReals()
public boolean boundLower()
public boolean boundUpper()
public IntervalRelations compare(OWLRealInterval other)
public boolean contains(Number n)
public Number getLower()
public OWLRealInterval.LineType getType()
public Number getUpper()
public OWLRealInterval greater(Number n)
n - null if that intersection is emptypublic boolean inclusiveLower()
public boolean inclusiveUpper()
public OWLRealInterval intersection(OWLRealInterval that)
public boolean isFinite()
public boolean isPoint()
public OWLRealInterval less(Number n)
n - null if that intersection is emptypublic List<OWLRealInterval> remove(OWLRealInterval other)
public Number size()
public List<OWLRealInterval> union(OWLRealInterval other)
Copyright © 2019. All rights reserved.