Package gw.util.perf.objectsize
Class UnmodifiableSizeTwoSet<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<T>
-
- gw.util.perf.objectsize.UnmodifiableSizeTwoSet<T>
-
- All Implemented Interfaces:
Iterable<T>,Collection<T>,Set<T>
public class UnmodifiableSizeTwoSet<T> extends AbstractSet<T>
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableSizeTwoSet(T o1, T o2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(Object o)Iterator<T>iterator()intsize()-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Method Detail
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<T>- Specified by:
containsin interfaceSet<T>- Overrides:
containsin classAbstractCollection<T>
-
size
public final int size()
- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceSet<T>- Specified by:
sizein classAbstractCollection<T>
-
-