Package org.refcodes.tabular
Class FormattedHeaderImpl<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<C>
-
- org.refcodes.tabular.AbstractHeader<T,FormattedColumn<? extends T>>
-
- org.refcodes.tabular.FormattedHeaderImpl<T>
-
- Type Parameters:
T
- the generic type
- All Implemented Interfaces:
java.lang.Iterable<T>
,java.util.Collection<T>
,java.util.List<T>
,org.refcodes.structure.Clearable
,org.refcodes.structure.Keys<T,C>
,org.refcodes.structure.Keys.MutableKeys<T,C>
,ColumnRow<T,C>
,FormattedHeader<T>
,HeaderRow<T,FormattedColumn<? extends T>>
public class FormattedHeaderImpl<T> extends AbstractHeader<T,FormattedColumn<? extends T>> implements FormattedHeader<T>
The Class FormattedHeaderImpl.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.refcodes.tabular.AbstractHeader
_keys
-
-
Constructor Summary
Constructors Constructor Description FormattedHeaderImpl()
Instantiates a new formatted header impl.FormattedHeaderImpl(FormattedColumn<? extends T>... aHeader)
Instantiates a new formatted header impl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getResetEscapeCode()
Gets the ANSI reset Escape-Code for thisFormattedHeader
instance.void
setResetEscapeCode(java.lang.String aEscapeCode)
Gets the ANSI reset Escape-Code for thisFormattedHeader
instance.-
Methods inherited from class org.refcodes.tabular.AbstractHeader
add, add, containsKey, delete, fromStorageString, fromStorageString, fromStorageStringRecord, fromStorageStringRow, fromStorageStrings, fromStorageStrings, fromStorageStringsRecord, fromStorageStringsRow, get, indexOf, keySet, toPrintable, toPrintable, toPrintableRecord, toPrintableRow, toRecord, toRecordIgnoreType, toRow, toRowIgnoreType, toStorageString, toStorageString, toStorageStringRecord, toStorageStringRow, toStorageStrings, toStorageStrings, toStorageStringsRecord, toStorageStringsRow, values
-
Methods inherited from class java.util.ArrayList
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
-
Methods inherited from interface org.refcodes.tabular.ColumnRow
containsValue, withColumns
-
Methods inherited from interface org.refcodes.tabular.FormattedHeader
withResetEscapeCode
-
Methods inherited from interface org.refcodes.tabular.HeaderRow
fromStorageString, fromStorageString, fromStorageStringRecord, fromStorageStringRow, fromStorageStrings, fromStorageStrings, fromStorageStringsRecord, fromStorageStringsRow, indexOf, toPrintable, toPrintable, toPrintableRecord, toPrintableRow, toRecord, toRecordIgnoreType, toRow, toRowIgnoreType, toStorageString, toStorageString, toStorageStringRecord, toStorageStringRow, toStorageStrings, toStorageStrings, toStorageStringsRecord, toStorageStringsRow
-
Methods inherited from interface java.util.List
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
-
-
-
-
Constructor Detail
-
FormattedHeaderImpl
public FormattedHeaderImpl()
Instantiates a new formatted header impl.
-
FormattedHeaderImpl
public FormattedHeaderImpl(FormattedColumn<? extends T>... aHeader)
Instantiates a new formatted header impl.- Parameters:
aHeader
- the header
-
-
Method Detail
-
getResetEscapeCode
public java.lang.String getResetEscapeCode()
Gets the ANSI reset Escape-Code for thisFormattedHeader
instance. In case an ANSI Escape-Codes is set, then this ANSI Reset-Code is prepended to the according text being printed.- Specified by:
getResetEscapeCode
in interfaceFormattedHeader<T>
- Returns:
- The
String
to be used for resetting ANSI escaping.
-
setResetEscapeCode
public void setResetEscapeCode(java.lang.String aEscapeCode)
Gets the ANSI reset Escape-Code for thisFormattedHeader
instance. In case an ANSI Escape-Codes is set, then this ANSI Reset-Code is prepended to the according text being printed.- Specified by:
setResetEscapeCode
in interfaceFormattedHeader<T>
- Parameters:
aEscapeCode
- TheString
to be used for resetting ANSI escaping.
-
-