Package se.datadosen.jalbum
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
ConstructorDescriptionTreeCollection
(Collection<AlbumObject> objects) TreeCollection
(Collection<AlbumObject> objects, EnumSet<IncludeOption> opts) TreeCollection
(AlbumObject folder) TreeCollection
(AlbumObject folder, EnumSet<IncludeOption> opts) -
Method Summary
Modifier and TypeMethodDescriptionboolean
iterator()
static TreeCollection
of
(Collection<AlbumObject> objects) static TreeCollection
of
(AlbumObject[] objects) ordered
(boolean ordered) int
size()
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, stream, toArray
-
Constructor Details
-
TreeCollection
-
TreeCollection
-
TreeCollection
-
TreeCollection
-
-
Method Details
-
of
-
of
-
isOrdered
public boolean isOrdered() -
ordered
-
spliterator
-
iterator
- Specified by:
iterator
in interfaceCollection<AlbumObject>
- Specified by:
iterator
in interfaceIterable<AlbumObject>
- Specified by:
iterator
in classAbstractCollection<AlbumObject>
-
size
public int size()- Specified by:
size
in interfaceCollection<AlbumObject>
- Specified by:
size
in classAbstractCollection<AlbumObject>
-