Package openllet.core.utils.intset
Class AbstractIntSet
- java.lang.Object
-
- openllet.core.utils.intset.AbstractIntSet
-
-
Constructor Summary
Constructors Constructor Description AbstractIntSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAll(IntSet values)
Adds all the integers from another set to this set.int
max()
Returns the maximum integer in this set.int
min()
Returns the minimum integer in this set.java.lang.String
toString()
IntSet
union(IntSet values)
Creates a new IntSet that is the union of this set and the given set.
-
-
-
Method Detail
-
addAll
public void addAll(IntSet values)
Description copied from interface:IntSet
Adds all the integers from another set to this set.
-
max
public int max()
Description copied from interface:IntSet
Returns the maximum integer in this set.
-
min
public int min()
Description copied from interface:IntSet
Returns the minimum integer in this set.
-
union
public IntSet union(IntSet values)
Description copied from interface:IntSet
Creates a new IntSet that is the union of this set and the given set. Neither of the sets are changed by this operation.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-