Class EitherSingletonOrCollection<T>
- java.lang.Object
-
- io.usethesource.capsule.core.trie.EitherSingletonOrCollection<T>
-
- Direct Known Subclasses:
EitherSingletonOrCollection.SomeCollection,EitherSingletonOrCollection.SomeSingleton
public abstract class EitherSingletonOrCollection<T> extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classEitherSingletonOrCollection.SomeCollection<T>private static classEitherSingletonOrCollection.SomeSingleton<T>static classEitherSingletonOrCollection.Type
-
Constructor Summary
Constructors Constructor Description EitherSingletonOrCollection()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract Set.Immutable<T>getCollection()(package private) abstract TgetSingleton()(package private) abstract booleanisType(EitherSingletonOrCollection.Type type)static <T> EitherSingletonOrCollectionof(Set.Immutable<T> value)static <T> EitherSingletonOrCollection<T>of(T value)
-
-
-
Method Detail
-
of
public static final <T> EitherSingletonOrCollection<T> of(T value)
-
of
public static final <T> EitherSingletonOrCollection of(Set.Immutable<T> value)
-
isType
abstract boolean isType(EitherSingletonOrCollection.Type type)
-
getSingleton
abstract T getSingleton()
-
getCollection
abstract Set.Immutable<T> getCollection()
-
-