Package | Description |
---|---|
org.refcodes.tabular |
The tabular package provides a frame to handle tables of data, often
occurring when logging or when working with CSV files.
|
org.refcodes.tabular.impls | |
org.refcodes.tabular.mixins | |
org.refcodes.tabular.traps | |
org.refcodes.tabular.utils |
Modifier and Type | Method and Description |
---|---|
T |
Row.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.
|
Modifier and Type | Class and Description |
---|---|
class |
HeaderImpl<T>
|
Modifier and Type | Method and Description |
---|---|
Header<T> |
RowsImpl.getHeader()
Retrieves the
Header property. |
Header<T> |
CsvInputStreamRecordsImpl.getHeader()
Retrieves the
Header property. |
Modifier and Type | Method and Description |
---|---|
T |
RowImpl.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.
|
Constructor and Description |
---|
CsvFileRecordsImpl(Header<T> aHeader,
File aCsvFile)
Constructs a
CsvFileRecordsImpl with the given parameters. |
CsvFileRecordsImpl(Header<T> aHeader,
File aCsvFile,
boolean isStrict)
Constructs a
CsvFileRecordsImpl with the given parameters. |
CsvFileRecordsImpl(Header<T> aHeader,
File aCsvFile,
char aCsvSeparator)
Constructs a
CsvFileRecordsImpl with the given parameters. |
CsvFileRecordsImpl(Header<T> aHeader,
File aCsvFile,
char aCsvSeparator,
boolean isStrict)
Constructs a
CsvFileRecordsImpl with the given parameters. |
CsvInputStreamRecordsImpl(Header<T> aHeader,
ColumnFactory<T> aColumnFactory,
InputStream aCsvInputStream,
char aCsvDelimiter,
boolean isStrict)
Constructs a
CsvInputStreamRecordsImpl with the given parameters. |
CsvInputStreamRecordsImpl(Header<T> aHeader,
InputStream aCsvInputStream)
Constructs a
CsvInputStreamRecordsImpl with the given parameters. |
CsvInputStreamRecordsImpl(Header<T> aHeader,
InputStream aCsvInputStream,
boolean isStrict)
Constructs a
CsvInputStreamRecordsImpl with the given parameters. |
CsvInputStreamRecordsImpl(Header<T> aHeader,
InputStream aCsvInputStream,
char aCsvDelimiter)
Constructs a
CsvInputStreamRecordsImpl with the given parameters. |
CsvInputStreamRecordsImpl(Header<T> aHeader,
InputStream aCsvInputStream,
char aCsvDelimiter,
boolean isStrict)
Constructs a
CsvInputStreamRecordsImpl with the given parameters. |
RowsImpl(Header<T> aHeader,
Collection<Row<T>> aRows)
|
RowsImpl(Header<T> aHeader,
Row<T>... aRows)
|
Modifier and Type | Method and Description |
---|---|
Header<T> |
HeaderAccessor.getHeader()
Retrieves the
Header property. |
Modifier and Type | Method and Description |
---|---|
void |
HeaderAccessor.HeaderMutator.setHeader(Header<T> aHeader)
Sets the
Header property. |
Constructor and Description |
---|
HeaderMismatchException(String aKey,
Header<?> aHeader,
String message) |
HeaderMismatchException(String aKey,
Header<?> aHeader,
String aMessage,
String aErrorCode) |
HeaderMismatchException(String aKey,
Header<?> aHeader,
String message,
Throwable cause) |
HeaderMismatchException(String aKey,
Header<?> aHeader,
String aMessage,
Throwable aCause,
String aErrorCode) |
HeaderMismatchException(String aKey,
Header<?> aHeader,
Throwable cause) |
HeaderMismatchException(String aKey,
Header<?> aHeader,
Throwable aCause,
String aErrorCode) |
Modifier and Type | Method and Description |
---|---|
static <T> Header<T> |
TabularUtility.toHeader(Collection<String> aColumnKeys,
ColumnFactory<T> aColumnFactory)
Creates a header for a given list of strings containing the column names
to be used for the header.
|
static <T> Header<T> |
TabularUtility.toHeader(String[] aColumnKeys,
ColumnFactory<T> aColumnFactory)
Creates a header for a given string array with the column names to be
used for the header.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
TabularUtility.isEqualWith(Record<?> aRecord,
Header<?> aEquivalsWith)
|
static boolean |
TabularUtility.isEqualWith(Row<?> aRow,
Header<?> aEquivalsWith)
|
static boolean |
TabularUtility.isSubsetOf(Record<?> aRecord,
Header<?> aSupersetOf)
|
static boolean |
TabularUtility.isSubsetOf(Row<?> aRow,
Header<?> aSupersetOf)
|
static boolean |
TabularUtility.isSupersetOf(Record<?> aRecord,
Header<?> aSubsetOf)
|
static boolean |
TabularUtility.isSupersetOf(Row<?> aRow,
Header<?> aSubsetOf)
|
static <T> Record<T> |
TabularUtility.toIntersection(Record<T> aRecord,
Header<?> aHeader)
|
static <T> Record<T> |
TabularUtility.toSubset(Record<T> aRecord,
Header<?> aHeader)
|
Copyright © 2015. All rights reserved.