public interface NodeIterable<T extends Node> extends Iterable<T>
Modifier and Type | Method and Description |
---|---|
default boolean |
contains(T node) |
default int |
count() |
default NodeIterable<T> |
distinct() |
default <F extends T> |
filter(Class<F> clazz) |
default FilteredNodeIterable<T> |
filter(NodePredicate predicate) |
default NodeIterable<T> |
filterInterface(Class<?> iface) |
default T |
first() |
default boolean |
isEmpty() |
default boolean |
isNotEmpty() |
default FilteredNodeIterable<T> |
nonNull() |
default List<T> |
snapshot() |
default void |
snapshotTo(Collection<? super T> to) |
forEach, iterator, spliterator
default <F extends T> NodeIterable<F> filter(Class<F> clazz)
default NodeIterable<T> filterInterface(Class<?> iface)
default FilteredNodeIterable<T> filter(NodePredicate predicate)
default FilteredNodeIterable<T> nonNull()
default NodeIterable<T> distinct()
default void snapshotTo(Collection<? super T> to)
default int count()
default boolean isEmpty()
default boolean isNotEmpty()