Class EitherSingletonOrCollection.SomeCollection<T>
- java.lang.Object
-
- io.usethesource.capsule.core.trie.EitherSingletonOrCollection<T>
-
- io.usethesource.capsule.core.trie.EitherSingletonOrCollection.SomeCollection<T>
-
- Enclosing class:
- EitherSingletonOrCollection<T>
private static final class EitherSingletonOrCollection.SomeCollection<T> extends EitherSingletonOrCollection<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.usethesource.capsule.core.trie.EitherSingletonOrCollection
EitherSingletonOrCollection.Type
-
-
Field Summary
Fields Modifier and Type Field Description private Set.Immutable<T>
value
-
Constructor Summary
Constructors Modifier Constructor Description private
SomeCollection(Set.Immutable<T> value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) Set.Immutable<T>
getCollection()
(package private) T
getSingleton()
(package private) boolean
isType(EitherSingletonOrCollection.Type type)
-
Methods inherited from class io.usethesource.capsule.core.trie.EitherSingletonOrCollection
of, of
-
-
-
-
Field Detail
-
value
private final Set.Immutable<T> value
-
-
Constructor Detail
-
SomeCollection
private SomeCollection(Set.Immutable<T> value)
-
-
Method Detail
-
isType
boolean isType(EitherSingletonOrCollection.Type type)
- Specified by:
isType
in classEitherSingletonOrCollection<T>
-
getSingleton
T getSingleton()
- Specified by:
getSingleton
in classEitherSingletonOrCollection<T>
-
getCollection
Set.Immutable<T> getCollection()
- Specified by:
getCollection
in classEitherSingletonOrCollection<T>
-
-