Class Interval<S extends Number>
java.lang.Object
org.tweetyproject.math.Interval<S>
- Type Parameters:
S- the (number-)type of the elements in this interval
- All Implemented Interfaces:
Iterable<S>,Collection<S>,Set<S>,NumberSet<S>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends S> c) voidclear()booleanbooleancontainsAll(Collection<?> c) Return interval setReturns the lower boundReturn upperBoundbooleanisElementOf(S a) checks, whether an element is within this intervalbooleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) voidsetIntervalset(NumberSet<S> intervalset) set intervalvoidsetLowerBound(S lowerBound) sets lower boundvoidsetUpperBound(S upperBound) Set upper boundintsize()Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
equals, hashCode, spliterator
-
Constructor Details
-
Interval
-
Interval
-
-
Method Details
-
getLowerBound
-
setLowerBound
-
getUpperBound
-
setUpperBound
-
getIntervalset
-
setIntervalset
-
isElementOf
checks, whether an element is within this interval- Parameters:
a- some element- Returns:
- true iff a is an element of this interval
-
add
-
addAll
-
clear
-
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<S extends Number>- Specified by:
containsAllin interfaceSet<S extends Number>
-
isEmpty
-
iterator
-
remove
-
removeAll
-
retainAll
-
size
-
toArray
-
toArray
-