Package de.scravy.bedrock
Interface ExtendedIterable<T>
- All Superinterfaces:
HasLengthAtLeast,Iterable<T>
- All Known Implementing Classes:
ArrayMap,Box,Box.DoubleBox,Box.IntBox,Box.LongBox,C,Cons,HList,Mapping.EmptyMapping,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 ExtendedIterable<T> extends Iterable<T>, HasLengthAtLeast
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceExtendedIterable.ForEachWithIndexConsumer<T> -
Method Summary
Modifier and Type Method Description default voidforEachWithIndex(ExtendedIterable.ForEachWithIndexConsumer<T> consumer)static <T> ExtendedIterable<T>fromIterable(Iterable<T> iterable)default booleanlengthAtLeast(int length)Checks whether this has at least that much elements.
-
Method Details
-
forEachWithIndex
-
lengthAtLeast
default boolean lengthAtLeast(int length)Description copied from interface:HasLengthAtLeastChecks whether this has at least that much elements.- Specified by:
lengthAtLeastin interfaceHasLengthAtLeast
-
fromIterable
-