Package org.tweetyproject.math
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>
This class contains a set of closed set (interval) of possible numbers
- Author:
- Bastian Wolf
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends S> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) Return interval setReturns the lower boundReturn upperBoundboolean
isElementOf
(S a) checks, whether an element is within this intervalboolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) void
setIntervalset
(NumberSet<S> intervalset) set intervalvoid
setLowerBound
(S lowerBound) sets lower boundvoid
setUpperBound
(S upperBound) Set upper boundint
size()
Object[]
toArray()
<T> T[]
toArray
(T[] a) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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:
containsAll
in interfaceCollection<S extends Number>
- Specified by:
containsAll
in interfaceSet<S extends Number>
-
isEmpty
-
iterator
-
remove
-
removeAll
-
retainAll
-
size
-
toArray
-
toArray
-