|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Example>
cosc575.p1.Examples
public class Examples
Implements a class for storing examples.
Field Summary | |
---|---|
private Attributes |
attributes
the attributes structure for these examples |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
Examples(Attributes attributes)
Explicit constructor. |
|
Examples(Attributes attributes,
java.util.Scanner scanner)
Given the attributes structure, processes the tokens in the scanner and populates the ArrayList of Doubles. |
Method Summary | |
---|---|
java.lang.String |
toString()
Returns a string representation of the examples. |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode |
Field Detail |
---|
private Attributes attributes
Constructor Detail |
---|
public Examples(Attributes attributes) throws java.lang.Exception
attributes
- the attributes for this set of examples
Expection
- if an exception occurs
java.lang.Exception
public Examples(Attributes attributes, java.util.Scanner scanner) throws java.lang.Exception
attributes
- a attributes structurescanner
- a Scanner containing the examples' tokens
java.lang.Exception
Method Detail |
---|
public java.lang.String toString()
toString
in class java.util.AbstractCollection<Example>
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |