public class IdentitySet extends Object implements Set
| 构造器和说明 |
|---|
IdentitySet()
Create an IdentitySet with default sizing.
|
IdentitySet(int sizing)
Create an IdentitySet with the given sizing.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(Object o) |
boolean |
addAll(Collection c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection c) |
boolean |
isEmpty() |
Iterator |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection c) |
boolean |
retainAll(Collection c) |
int |
size() |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, spliteratorparallelStream, removeIf, streampublic IdentitySet()
public IdentitySet(int sizing)
sizing - The sizing of the set to create.public int size()
size 在接口中 Collectionsize 在接口中 Setpublic boolean isEmpty()
isEmpty 在接口中 CollectionisEmpty 在接口中 Setpublic boolean contains(Object o)
contains 在接口中 Collectioncontains 在接口中 Setpublic Iterator iterator()
public Object[] toArray()
toArray 在接口中 CollectiontoArray 在接口中 Setpublic boolean add(Object o)
add 在接口中 Collectionadd 在接口中 Setpublic boolean remove(Object o)
remove 在接口中 Collectionremove 在接口中 Setpublic boolean containsAll(Collection c)
containsAll 在接口中 CollectioncontainsAll 在接口中 Setpublic boolean addAll(Collection c)
addAll 在接口中 CollectionaddAll 在接口中 Setpublic boolean retainAll(Collection c)
retainAll 在接口中 CollectionretainAll 在接口中 Setpublic boolean removeAll(Collection c)
removeAll 在接口中 CollectionremoveAll 在接口中 Setpublic void clear()
clear 在接口中 Collectionclear 在接口中 SetCopyright © 2020. All rights reserved.