public class BitIntSet extends Object implements IntSet
Title:
Description:
Copyright: Copyright (c) 2007
Company: Clark & Parsia, LLC.
| 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.
|
IntSet |
union(IntSet values)
Creates a new IntSet that is the union of this set and the given set.
|
public BitIntSet()
public BitIntSet(BitIntSet other)
public void add(int value)
IntSetpublic void addAll(IntSet values)
IntSetpublic boolean contains(int value)
IntSetpublic boolean isEmpty()
IntSetpublic IntIterator iterator()
IntSetpublic int max()
IntSetpublic int min()
IntSetpublic void remove(int value)
IntSetpublic int size()
IntSetCopyright © 2019. All rights reserved.