git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix source/type reset on redownload, show num img
[fanfix.git]
/
src
/
be
/
nikiroo
/
fanfix
/
data
/
Chapter.java
diff --git
a/src/be/nikiroo/fanfix/data/Chapter.java
b/src/be/nikiroo/fanfix/data/Chapter.java
index 839d67b7c0ad2a079cbbc28ddf7e16019031b85f..832994a937d4379d8c3d2105344d8ed2f67eb241 100644
(file)
--- a/
src/be/nikiroo/fanfix/data/Chapter.java
+++ b/
src/be/nikiroo/fanfix/data/Chapter.java
@@
-16,6
+16,14
@@
public class Chapter implements Iterable<Paragraph> {
private List<Paragraph> empty = new ArrayList<Paragraph>();
private long words;
private List<Paragraph> empty = new ArrayList<Paragraph>();
private long words;
+ /**
+ * Empty constructor, not to use.
+ */
+ @SuppressWarnings("unused")
+ private Chapter() {
+ // for serialisation purposes
+ }
+
/**
* Create a new {@link Chapter} with the given information.
*
/**
* Create a new {@link Chapter} with the given information.
*
@@
-79,7
+87,7
@@
public class Chapter implements Iterable<Paragraph> {
/**
* The included paragraphs.
*
/**
* The included paragraphs.
*
- * @param paragraph
e
s
+ * @param paragraphs
* the paragraphs to set
*/
public void setParagraphs(List<Paragraph> paragraphs) {
* the paragraphs to set
*/
public void setParagraphs(List<Paragraph> paragraphs) {
@@
-89,12
+97,13
@@
public class Chapter implements Iterable<Paragraph> {
/**
* Get an iterator on the {@link Paragraph}s.
*/
/**
* Get an iterator on the {@link Paragraph}s.
*/
+ @Override
public Iterator<Paragraph> iterator() {
return paragraphs == null ? empty.iterator() : paragraphs.iterator();
}
/**
public Iterator<Paragraph> iterator() {
return paragraphs == null ? empty.iterator() : paragraphs.iterator();
}
/**
- * The number of words in this {@link Chapter}.
+ * The number of words
(or images)
in this {@link Chapter}.
*
* @return the number of words
*/
*
* @return the number of words
*/
@@
-103,7
+112,7
@@
public class Chapter implements Iterable<Paragraph> {
}
/**
}
/**
- * The number of words in this {@link Chapter}.
+ * The number of words
(or images)
in this {@link Chapter}.
*
* @param words
* the number of words to set
*
* @param words
* the number of words to set