public class IntSet extends Object
Constructor and Description |
---|
IntSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(int n)
add
|
boolean |
addAll(IntSet s)
addAll
|
void |
clear()
clear
|
boolean |
contains(int n)
contains
|
boolean |
containsAll(IntSet s)
containsAll
|
boolean |
isEmpty()
isEmpty
|
Iterator<Integer> |
iterator()
iterator
|
boolean |
remove(int n)
remove
|
boolean |
removeAll(IntSet s)
removeAll
|
boolean |
retainAll(IntSet s)
retainAll
|
int |
size()
size
|
int[] |
toArray()
toArray
|
public boolean add(int n)
add
n
- a int.public void clear()
clear
public boolean contains(int n)
contains
n
- a int.public boolean containsAll(IntSet s)
containsAll
s
- a IntSet
object.public boolean isEmpty()
isEmpty
public boolean remove(int n)
remove
n
- a int.public boolean removeAll(IntSet s)
removeAll
s
- a IntSet
object.public boolean retainAll(IntSet s)
retainAll
s
- a IntSet
object.public int size()
size
public int[] toArray()
toArray
Copyright © 2015. All Rights Reserved.