public class Document extends Object implements Iterable<Section>, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Document.DocumentBuilder |
Constructor and Description |
---|
Document(List<Section> sections,
Optional<String> fileName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Optional<String> |
getFileName()
Get file name.
|
Section |
getLastSection()
Get last Section.
|
Section |
getSection(int id)
Get the specified section.
|
int |
hashCode() |
Iterator<Section> |
iterator() |
int |
size()
Get the size of sections in the file.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public Section getLastSection()
public int size()
public Section getSection(int id)
id
- section idCopyright © 2015. All rights reserved.