java.lang.Object
me.sbasalaev.collection.Collection<T>
me.sbasalaev.collection.Set<T>
me.sbasalaev.collection.MutableSet<T>
- All Implemented Interfaces:
Cloneable,Iterable<T>,MutableCollection<T>,Traversable<T>
Set that can be mutated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> MutableSet<T> empty()Returns new mutable set that is initially empty.static <T> MutableSet<T> of(Collection<? extends T> elements) Returns new mutable set that initially contains given elements.static <T> MutableSet<T> of(T... elements) Returns new mutable set that initially contains given elements.Methods inherited from class me.sbasalaev.collection.Set
clone, contains, equals, filtered, fromJava, hashCode, intersect, intersects, isSubset, isSuperset, mapped, spliterator, toJava, union, union, unite, withoutMethods inherited from class me.sbasalaev.collection.Collection
count, fillArray, isEmpty, nonEmpty, size, stream, toArray, toArray, toList, toSet, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface me.sbasalaev.collection.MutableCollection
add, addAll, clear, remove, removeAllMatching, retainAllMatching
-
Constructor Details
-
MutableSet
public MutableSet()Constructor for subclasses.
-
-
Method Details
-
empty
Returns new mutable set that is initially empty. -
of
Returns new mutable set that initially contains given elements. -
of
Returns new mutable set that initially contains given elements.
-