-
- All Superinterfaces:
Acceptor<T>
,Iterable<T>
,Serializable
- All Known Implementing Classes:
FrequencyElements
,ListElements
public interface Elements<T> extends Iterable<T>, Acceptor<T>, Serializable
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description FrequencyElements
asFrequencies()
ListElements
asList()
ListElements
asSet()
boolean
contains(String key)
Elements<T>
filter(Predicate<T> value)
static FrequencyElements
frequencyElements(String... elements)
static FrequencyElements
frequencyElements(Stream<Frequency> stream)
Iterator<T>
iterator()
static ListElements
listElements(String... elements)
static ListElements
listElements(Stream<String> elements)
Elements<T>
merge(Elements<T> other)
static ListElements
setElements(String... elements)
int
size()
Stream<T>
stream()
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
asFrequencies
FrequencyElements asFrequencies()
-
asList
ListElements asList()
-
asSet
ListElements asSet()
-
contains
boolean contains(String key)
-
size
int size()
-
listElements
static ListElements listElements(String... elements)
-
listElements
static ListElements listElements(Stream<String> elements)
-
setElements
static ListElements setElements(String... elements)
-
frequencyElements
static FrequencyElements frequencyElements(String... elements)
-
frequencyElements
static FrequencyElements frequencyElements(Stream<Frequency> stream)
-
-