public class SortedLinkedHashSet<E> extends LinkedHashSet<E>
| 构造器和说明 |
|---|
SortedLinkedHashSet() |
SortedLinkedHashSet(OrderedComparator comparator) |
SortedLinkedHashSet(Supplier<E,Integer> defaultOrderSupplier) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(E o)
Every time an Ordered element is added via this method this
Set will be re-sorted, otherwise the element is simply added
to the end.
|
boolean |
addAll(Collection<? extends E> c)
Adds all elements in this Collection.
|
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
<T> T[] |
toArray(T[] a) |
String |
toString() |
spliteratorequals, hashCodecontainsAll, retainAll, toArrayclear, contains, containsAll, equals, hashCode, isEmpty, iterator, retainAll, size, toArrayparallelStream, removeIf, streampublic SortedLinkedHashSet()
public SortedLinkedHashSet(OrderedComparator comparator)
public boolean add(E o)
public boolean addAll(Collection<? extends E> c)
addAll 在接口中 Collection<E>addAll 在接口中 Set<E>addAll 在类中 AbstractCollection<E>public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
removeAll 在接口中 Collection<E>removeAll 在接口中 Set<E>removeAll 在类中 AbstractSet<E>public <T> T[] toArray(T[] a)
toArray 在接口中 Collection<E>toArray 在接口中 Set<E>toArray 在类中 AbstractCollection<E>public String toString()
toString 在类中 AbstractCollection<E>Copyright © 2022. All rights reserved.