Package de.scravy.bedrock
Interface Container<E>
- All Superinterfaces:
ExtendedIterable<E>,HasLengthAtLeast,Iterable<E>
- All Known Implementing Classes:
C,Cons,HList,Nil,RingBuffer,Seq,Set,SpecificityTree
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Container<E> extends ExtendedIterable<E>
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.scravy.bedrock.ExtendedIterable
ExtendedIterable.ForEachWithIndexConsumer<T> -
Method Summary
Modifier and Type Method Description default StringasString()default StringasString(String delimiter)default booleancontains(E element)default Edraw()default Edraw(Random random)default booleanexists(Predicate<? super E> predicate)default booleanforAll(Predicate<? super E> predicate)static <E> Container<E>fromIterable(Iterable<E> e)default booleanisEmpty()default booleannonEmpty()default Stream<E>stream()default List<E>toList()
-
Method Details
-
isEmpty
default boolean isEmpty() -
nonEmpty
default boolean nonEmpty() -
asString
-
asString
-
draw
- Throws:
NoSuchElementException
-
draw
- Throws:
NoSuchElementException
-
forAll
-
exists
-
contains
-
stream
-
toList
-
fromIterable
-