T
- The type managed by the Row
.Serializable
, Cloneable
, Iterable<T>
, Collection<T>
, List<T>
, RandomAccess
, Row<T>
public class RowImpl<T> extends ArrayList<T> implements Row<T>, Cloneable
modCount
Constructor | Description |
---|---|
RowImpl(T... aValues) |
Constructs the
RowImpl instance configured with the provided
elements. |
Modifier and Type | Method | Description |
---|---|---|
T |
get(Header<T> aHeader,
String aKey) |
This method retrieves a value from the row by taking the index of the
according column in the header of the given key (the one with the given
key) and returns that value.
|
containsAll, toString
equals, hashCode
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
parallelStream, removeIf, stream
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, of, of, of, of, of, of, of, of, of, of, of, of, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
@SafeVarargs public RowImpl(T... aValues)
RowImpl
instance configured with the provided
elements.aValues
- The elements to be contained in the RowImpl
in the
order as passed.public T get(Header<T> aHeader, String aKey) throws HeaderMismatchException, ColumnMismatchException
Header
(as down
with Column.get(Record)
).
-------------------------------------------------------------------------get
in interface Row<T>
aHeader
- The header being the reference for retrieval of the value
by the given key.aKey
- The key for which to retrieve the value.HeaderMismatchException
- Thrown in case there is a mismatch
between the given HeaderMismatchException
and the
Row
, i.e. the index for the given key in the header may
be out of index of the given row or the given key does not exist
in the Header
.ColumnMismatchException
- in case the type defined in the column
for that key does not match the type in the row identified by the
given key.Copyright © 2018. All rights reserved.