Package jahuwaldt.js.datareader
Class DataSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- jahuwaldt.js.datareader.DataElementList<DataCase>
-
- jahuwaldt.js.datareader.DataSet
-
- All Implemented Interfaces:
DataElement
,java.lang.Comparable<DataElement>
,java.lang.Iterable<DataCase>
,java.util.Collection<DataCase>
,java.util.List<DataCase>
,javolution.lang.Reusable
public final class DataSet extends DataElementList<DataCase>
Defines a data element called a set. A data set is a collection of runs orcases
that make up a single test or set of associated data. Any number of cases may be added to a set.Modified by: Joseph A. Huwaldt
- Version:
- October 13, 2015
- Author:
- Joseph A. Huwaldt, Date: March 5, 2003
-
-
Field Summary
-
Fields inherited from interface jahuwaldt.js.datareader.DataElement
RESOURCES
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataSet
newInstance(java.lang.CharSequence name)
Returns a new, preallocated or recycledDataSet
instance (on the stack when executing in aStackContext
) with the specified name, that can store a list ofDataCase
objects and any associated user data.static void
recycle(DataSet instance)
Recycles a set instance immediately (on the stack when executing in a StackContext).static DataSet
valueOf(java.lang.String name, java.util.Collection<?> cases)
Return a data set made up of anycases
found in the specified collection.-
Methods inherited from class jahuwaldt.js.datareader.DataElementList
add, addAll, addAll, compareTo, equals, get, get, getIndexFromName, getName, getUserObject, hashCode, iterator, listIterator, listIterator, remove, remove, reset, set, setName, setUserObject, size, toString, toText, unmodifiable
-
Methods inherited from class java.util.AbstractList
add, addAll, clear, indexOf, lastIndexOf, subList
-
-
-
-
Method Detail
-
newInstance
public static DataSet newInstance(java.lang.CharSequence name)
Returns a new, preallocated or recycledDataSet
instance (on the stack when executing in aStackContext
) with the specified name, that can store a list ofDataCase
objects and any associated user data.- Parameters:
name
- The name to be assigned to this set (may not benull
).
-
recycle
public static void recycle(DataSet instance)
Recycles a set instance immediately (on the stack when executing in a StackContext).
-
valueOf
public static DataSet valueOf(java.lang.String name, java.util.Collection<?> cases)
Return a data set made up of anycases
found in the specified collection. Any objects that are notDataCase
objects in the specified collection will be ignored. If you pass aDataSet
object, all the cases found in it will be added to the new set.- Parameters:
name
- The name to be assigned to this set (may not benull
).cases
- A collection that contains a set of cases.
-
-