类 IdentitySet
- java.lang.Object
-
- org.hibernate.internal.util.collections.IdentitySet
-
- 所有已实现的接口:
Iterable,Collection,Set
public class IdentitySet extends Object implements Set
Set implementation that use == instead of equals() as its comparison mechanism. This is achieved by internally using an IdentityHashMap.- 作者:
- Emmanuel Bernard
-
-
构造器概要
构造器 构造器 说明 IdentitySet()Create an IdentitySet with default sizing.IdentitySet(int sizing)Create an IdentitySet with the given sizing.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanadd(Object o)booleanaddAll(Collection c)voidclear()booleancontains(Object o)booleancontainsAll(Collection c)booleanisEmpty()Iteratoriterator()booleanremove(Object o)booleanremoveAll(Collection c)booleanretainAll(Collection c)intsize()Object[]toArray()Object[]toArray(Object[] a)-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 java.util.Collection
parallelStream, removeIf, stream, toArray
-
从接口继承的方法 java.util.Set
equals, hashCode, spliterator
-
-
-
-
方法详细资料
-
size
public int size()
- 指定者:
size在接口中Collection- 指定者:
size在接口中Set
-
isEmpty
public boolean isEmpty()
- 指定者:
isEmpty在接口中Collection- 指定者:
isEmpty在接口中Set
-
contains
public boolean contains(Object o)
- 指定者:
contains在接口中Collection- 指定者:
contains在接口中Set
-
iterator
public Iterator iterator()
-
toArray
public Object[] toArray()
- 指定者:
toArray在接口中Collection- 指定者:
toArray在接口中Set
-
add
public boolean add(Object o)
- 指定者:
add在接口中Collection- 指定者:
add在接口中Set
-
remove
public boolean remove(Object o)
- 指定者:
remove在接口中Collection- 指定者:
remove在接口中Set
-
containsAll
public boolean containsAll(Collection c)
- 指定者:
containsAll在接口中Collection- 指定者:
containsAll在接口中Set
-
addAll
public boolean addAll(Collection c)
- 指定者:
addAll在接口中Collection- 指定者:
addAll在接口中Set
-
retainAll
public boolean retainAll(Collection c)
- 指定者:
retainAll在接口中Collection- 指定者:
retainAll在接口中Set
-
removeAll
public boolean removeAll(Collection c)
- 指定者:
removeAll在接口中Collection- 指定者:
removeAll在接口中Set
-
clear
public void clear()
- 指定者:
clear在接口中Collection- 指定者:
clear在接口中Set
-
-