class OrderedSet extends Object implements Set
| Constructor and Description |
|---|
OrderedSet() |
OrderedSet(Collection c) |
OrderedSet(List list)
Create using the given List as the internal storage method.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object obj) |
boolean |
addAll(Collection c) |
void |
clear() |
boolean |
contains(Object obj) |
boolean |
containsAll(Collection c) |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator |
iterator() |
boolean |
remove(Object obj) |
boolean |
removeAll(Collection c) |
boolean |
retainAll(Collection c) |
int |
size() |
Object[] |
toArray() |
Object[] |
toArray(Object[] arr) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitspliteratorparallelStream, removeIf, streamprivate List list
public OrderedSet()
public OrderedSet(Collection c)
public OrderedSet(List list)
public boolean add(Object obj)
add in interface Collectionadd in interface Setpublic boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface Setpublic void clear()
clear in interface Collectionclear in interface Setpublic boolean contains(Object obj)
contains in interface Collectioncontains in interface Setpublic boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface Setpublic boolean equals(Object obj)
public int hashCode()
public boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Setpublic Iterator iterator()
public boolean remove(Object obj)
remove in interface Collectionremove in interface Setpublic boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface Setpublic boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface Setpublic int size()
size in interface Collectionsize in interface Setpublic Object[] toArray()
toArray in interface CollectiontoArray in interface SetCopyright © 2020. All rights reserved.