public class _SortedArraySet extends _UnmodifiableSet
Constructor and Description |
---|
_SortedArraySet(Object[] array) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Object o) |
boolean |
addAll(Collection c) |
void |
clear() |
boolean |
contains(Object o) |
Iterator |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection c) |
boolean |
retainAll(Collection c) |
int |
size() |
equals, hashCode
containsAll, isEmpty, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, isEmpty, spliterator, toArray, toArray
parallelStream, removeIf, stream
public _SortedArraySet(Object[] array)
public int size()
size
in interface Collection
size
in interface Set
size
in class AbstractCollection
public boolean contains(Object o)
contains
in interface Collection
contains
in interface Set
contains
in class AbstractCollection
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface Set
iterator
in class AbstractCollection
public boolean add(Object o)
add
in interface Collection
add
in interface Set
add
in class _UnmodifiableSet
public boolean remove(Object o)
remove
in interface Collection
remove
in interface Set
remove
in class _UnmodifiableSet
public boolean addAll(Collection c)
addAll
in interface Collection
addAll
in interface Set
addAll
in class AbstractCollection
public boolean removeAll(Collection c)
removeAll
in interface Collection
removeAll
in interface Set
removeAll
in class AbstractSet
public boolean retainAll(Collection c)
retainAll
in interface Collection
retainAll
in interface Set
retainAll
in class AbstractCollection
public void clear()
clear
in interface Collection
clear
in interface Set
clear
in class _UnmodifiableSet
Copyright © 2016. All Rights Reserved.