类 SmallSet<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<T>
cn.taketoday.bytecode.tree.analysis.SmallSet<T>
- 所有已实现的接口:
Iterable<T>,Collection<T>,Set<T>
An immutable set of at most two elements, optimized for speed compared to a generic set
implementation.
- 作者:
- Eric Bruneton
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
从类继承的方法 java.util.AbstractSet
equals, hashCode, removeAll从类继承的方法 java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString从接口继承的方法 java.util.Collection
parallelStream, removeIf, stream, toArray
-
字段详细资料
-
element1
The first element of this set, maybe null. -
element2
-
-
构造器详细资料
-
方法详细资料
-
iterator
-
size
public int size()- 指定者:
size在接口中Collection<T>- 指定者:
size在接口中Set<T>- 指定者:
size在类中AbstractCollection<T>
-
union
Returns the union of this set and of the given set.- 参数:
otherSet- another small set.- 返回:
- the union of this set and of otherSet.
-