public class TreeIntSet extends AbstractIntSet implements IntSet
Title:
Description:
Copyright: Copyright (c) 2007
Company: Clark & Parsia, LLC.
| Constructor and Description |
|---|
TreeIntSet() |
TreeIntSet(TreeIntSet other) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int value)
Adds a new integer to this set.
|
void |
addAll(IntSet values)
Adds all the integers from another set to this set.
|
boolean |
contains(int value)
Checks if the given integer value is in this set.
|
IntSet |
copy()
Creates a copy of this set.
|
boolean |
isEmpty()
Cehcks if the set is empty.
|
IntIterator |
iterator()
An iterator over the values of this set.
|
int |
max()
Returns the maximum integer in this set.
|
int |
min()
Returns the minimum integer in this set.
|
void |
remove(int value)
Remove the given integer value from this set.
|
int |
size()
Returns the number of elements in the set.
|
added, removed, toString, unionpublic TreeIntSet()
public TreeIntSet(TreeIntSet other)
public void add(int value)
IntSetpublic void addAll(IntSet values)
IntSetaddAll in interface IntSetaddAll in class AbstractIntSetvalues - the set whose elements will be addedpublic boolean contains(int value)
IntSetpublic boolean isEmpty()
IntSetpublic IntIterator iterator()
IntSetpublic int max()
IntSetmax in interface IntSetmax in class AbstractIntSetpublic int min()
IntSetmin in interface IntSetmin in class AbstractIntSetpublic void remove(int value)
IntSetCopyright © 2019. All rights reserved.