public interface Subdocuments extends DocumentWorkerObject, Iterable<Subdocument>
| Modifier and Type | Method and Description |
|---|---|
Subdocument |
add(String reference)
Creates a new subdocument and adds it to the collection.
|
Subdocument |
get(int index)
Retrieves the subdocument at the specified position.
|
Document |
getDocument()
Returns the document that this collection of subdocuments is associated with.
|
boolean |
isEmpty()
Returns true if there are no subdocuments in this collection.
|
int |
size()
Returns the number of subdocuments in this collection.
|
Stream<Subdocument> |
stream()
Returns a sequential
Stream with this subdocuments collection as its source. |
getApplicationforEach, iterator, spliterator@Nonnull Subdocument add(String reference)
reference - the reference that the subdocument should initially be assigned@Nonnull Subdocument get(int index)
Note that if a subdocument in the list is deleted that this will affect the positions of the subdocuments which follow it in the subdocument list.
index - index of the subdocument to returnIndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())@Nonnull Document getDocument()
boolean isEmpty()
int size()
@Nonnull Stream<Subdocument> stream()
Stream with this subdocuments collection as its source.Stream over the collection of subdocumentsCopyright © 2016–2022 EntIT Software LLC, a Micro Focus company. All rights reserved.