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 class
EitherSingletonOrCollection.SomeCollection<T>
private static class
EitherSingletonOrCollection.SomeSingleton<T>
static class
EitherSingletonOrCollection.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 T
getSingleton()
(package private) abstract boolean
isType(EitherSingletonOrCollection.Type type)
static <T> EitherSingletonOrCollection
of(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()
-
-