public class LocalFastSet extends Object implements FastSet, Serializable
Constructor and Description |
---|
LocalFastSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(int e) |
void |
addAll(FastSet c) |
void |
clear()
clear the set
|
void |
completeSet(int value) |
boolean |
contains(int o) |
boolean |
containsAll(FastSet c) |
boolean |
containsAny(FastSet c) |
int |
get(int i) |
boolean |
intersect(FastSet f) |
boolean |
isEmpty() |
void |
remove(int o) |
void |
removeAll(int i,
int end)
remove all elements between the two positions
|
void |
removeAllValues(int... values) |
void |
removeAt(int o) |
int |
size() |
int[] |
toIntArray() |
public int[] toIntArray()
toIntArray
in interface FastSet
public void removeAt(int o)
public void removeAllValues(int... values)
removeAllValues
in interface FastSet
values
- elements to removepublic void removeAll(int i, int end)
FastSet
public void remove(int o)
public boolean isEmpty()
public boolean intersect(FastSet f)
public int get(int i)
public boolean containsAny(FastSet c)
containsAny
in interface FastSet
c
- elements to checkpublic boolean containsAll(FastSet c)
containsAll
in interface FastSet
c
- elements to checkpublic boolean contains(int o)
public void clear()
FastSet
public void addAll(FastSet c)
public boolean add(int e)
public void completeSet(int value)
completeSet
in interface FastSet
value
- valueCopyright © 2020 The University of Manchester. All rights reserved.