public final class Paragraph extends Object
Constructor and Description |
---|
Paragraph()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
appendSentence(Sentence sentence)
Append a sentence.
|
void |
appendSentence(String content,
int lineNum)
Append a sentence to a paragraph.
|
int |
getNumberOfSentences()
Get the number of sentences in the paragraph.
|
Sentence |
getSentence(int sentenceNumber)
Get the specified sentence.
|
List<Sentence> |
getSentences()
Get the iterator of sentences.
|
public List<Sentence> getSentences()
public Sentence getSentence(int sentenceNumber)
sentenceNumber
- sentence numberpublic void appendSentence(String content, int lineNum)
content
- sentencelineNum
- line number of sentencepublic void appendSentence(Sentence sentence)
sentence
- a sentence to be added to paragraphpublic int getNumberOfSentences()
Copyright © 2015. All rights reserved.