Package openllet.core.utils
Class BinarySet<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<T>
-
- openllet.core.utils.BinarySet<T>
-
- Type Parameters:
T- kind of element
- All Implemented Interfaces:
java.lang.Iterable<T>,java.util.Collection<T>,java.util.Set<T>
public class BinarySet<T> extends java.util.AbstractSet<T>A specialized immutable implementation of Set interface that always contains exactly two elements.- Author:
- Evren Sirin
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(java.lang.Object o)static <T> BinarySet<T>create(T first, T second)Tfirst()java.util.Iterator<T>iterator()Tsecond()intsize()
-