public class HashIntSet extends AbstractIntSet implements IntSet
Title:
Description:
Copyright: Copyright (c) 2007
Company: Clark & Parsia, LLC.
| Constructor and Description |
|---|
HashIntSet() |
| 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.
|
void |
remove(int value)
Remove the given integer value from this set.
|
int |
size()
Returns the number of elements in the set.
|
added, max, min, removed, toString, unionpublic 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 void remove(int value)
IntSetCopyright © 2019. All rights reserved.