Class TreeCollection
- All Implemented Interfaces:
Iterable<AlbumObject>,Collection<AlbumObject>
Collection over all children and descendants of given AlbumObject
- Since:
- 14.2 Made public in v22
-
Constructor Summary
ConstructorsConstructorDescriptionTreeCollection(Collection<AlbumObject> objects) TreeCollection(Collection<AlbumObject> objects, EnumSet<IncludeOption> opts) TreeCollection(AlbumObject folder) TreeCollection(AlbumObject folder, EnumSet<IncludeOption> opts) -
Method Summary
Modifier and TypeMethodDescriptionfilter(Predicate<AlbumObject> filter) Allow arbitrary filter to be applied before folders are iterated This allows to filter out certain folder treesbooleaniterator()static TreeCollectionof(Collection<AlbumObject> objects) static TreeCollectionof(AlbumObject root) Since 38static TreeCollectionof(AlbumObject[] objects) ordered(boolean ordered) intsize()Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, stream, toArray
-
Constructor Details
-
TreeCollection
-
TreeCollection
-
TreeCollection
-
TreeCollection
-
-
Method Details
-
getFilter
- Since:
- 38
-
filter
Allow arbitrary filter to be applied before folders are iterated This allows to filter out certain folder trees- Parameters:
filter-- Since:
- 38
-
of
-
of
-
of
-
isOrdered
public boolean isOrdered() -
ordered
-
spliterator
-
iterator
- Specified by:
iteratorin interfaceCollection<AlbumObject>- Specified by:
iteratorin interfaceIterable<AlbumObject>- Specified by:
iteratorin classAbstractCollection<AlbumObject>
-
size
public int size()- Specified by:
sizein interfaceCollection<AlbumObject>- Specified by:
sizein classAbstractCollection<AlbumObject>
-