Package eu.bandm.tools.util.nonnull
Interface NonNullSet<E>
- All Superinterfaces:
Collection<E>,Iterable<E>,Set<E>
- All Known Implementing Classes:
NonNullSet.SetProxy
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classImplementing class, NOT visible to the user. -
Method Summary
Modifier and TypeMethodDescriptionasSorted()Returns a sorted, unmodifiable view if the backing peer is a sorted set.static <T2> NonNullSet<T2> static <E1> NonNullSet<E1> static <E1> NonNullSet<E1> newInstance(Supplier<Set<E1>> supplier) static <T1> NonNullSet<T1> singleton(T1 x) Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Method Details
-
newInstance
-
newInstance
-
copyOf
-
asSorted
Returns a sorted, unmodifiable view if the backing peer is a sorted set.- Throws:
UnsupportedOperationException- if the backing peer does not offer a sorted view.
-
singleton
-