public class Examples extends java.util.ArrayList<Example>
Modifier and Type | Field and Description |
---|---|
private Attributes |
attributes
the attributes structure for these examples
|
Constructor and Description |
---|
Examples(Attributes attributes)
Explicit constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
parse(java.util.Scanner scanner)
Given the attributes structure, parses the tokens in the scanner,
makes Examples, and adds them to this Examples object.
|
java.lang.String |
toString()
Returns a string representation of this Examples object.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
private Attributes attributes
public Examples(Attributes attributes)
attributes
- the attributes for this set of examplespublic void parse(java.util.Scanner scanner) throws java.lang.Exception
scanner
- a Scanner containing the examples' tokensjava.lang.Exception
- if an index is out of bounds or if a parse error occurspublic java.lang.String toString()
toString
in class java.util.AbstractCollection<Example>