public class HGAtomSet extends Object implements HGSortedSet<HGHandle>
A HGAtomSet
represents a temporary construction of a set of atoms.
Each atom handle is stored in the set. The implementation provides:
Modifier and Type | Field and Description |
---|---|
protected HGSortedSet<HGPersistentHandle> |
impl |
Constructor and Description |
---|
HGAtomSet() |
HGAtomSet(HGSortedSet implementation) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(HGHandle h) |
boolean |
addAll(Collection<? extends HGHandle> c) |
void |
clear() |
Comparator<? super HGHandle> |
comparator() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object x) |
HGHandle |
first() |
HGRandomAccessResult<HGHandle> |
getSearchResult() |
int |
hashCode() |
SortedSet<HGHandle> |
headSet(HGHandle h) |
boolean |
isEmpty() |
Iterator<HGHandle> |
iterator() |
HGHandle |
last() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
SortedSet<HGHandle> |
subSet(HGHandle fromElement,
HGHandle toElement) |
SortedSet<HGHandle> |
tailSet(HGHandle h) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
protected HGSortedSet<HGPersistentHandle> impl
public HGAtomSet()
public HGAtomSet(HGSortedSet implementation)
public HGRandomAccessResult<HGHandle> getSearchResult()
getSearchResult
in interface HGSortedSet<HGHandle>
public Comparator<? super HGHandle> comparator()
comparator
in interface SortedSet<HGHandle>
public boolean add(HGHandle h)
public boolean addAll(Collection<? extends HGHandle> c)
public void clear()
public boolean contains(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<HGHandle>
containsAll
in interface Set<HGHandle>
public boolean isEmpty()
public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public int size()
public Object[] toArray()
public <T> T[] toArray(T[] a)
public int hashCode()
Copyright © 2015. All rights reserved.