public class CsvRow extends ArrayList<String>
modCount| Modifier | Constructor and Description |
|---|---|
protected |
CsvRow(Collection<String> collection) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
String element)
Not implemented cause of immutable object
|
boolean |
add(String element)
Not implemented cause of immutable object
|
boolean |
addAll(Collection<? extends String> collection)
Not implemented cause of immutable object
|
boolean |
addAll(int index,
Collection<? extends String> collection)
Not implemented cause of immutable object
|
void |
clear()
Not implemented cause of immutable object
|
static List<CsvRow> |
csvRowArrayOf(Collection<String[]> lines) |
static List<CsvRow> |
csvRowListOf(Collection<List<String>> lines) |
static CsvRow |
csvRowOf(Collection<String> lines) |
static CsvRow |
csvRowOf(String... row) |
static CsvRow |
csvRowOf(String row) |
static CsvRow |
csvRowOf(String row,
char... separators) |
String |
get(int index)
Returns the column value at the specified position in this
CsvRow. |
CsvRow |
get(int index,
char... separators)
Returns the column value at the specified position in this
CsvRow. |
Optional<String> |
getOpt(int index)
Returns the column value at the specified position in this
CsvRow. |
Optional<CsvRow> |
getOpt(int index,
char... separators)
Returns the column value at the specified position in this
CsvRow. |
String |
remove(int index)
Not implemented cause of immutable object
|
boolean |
remove(Object remove)
Not implemented cause of immutable object
|
boolean |
removeAll(Collection<?> collection)
Not implemented cause of immutable object
|
boolean |
removeIf(Predicate<? super String> filter)
Not implemented cause of immutable object
|
void |
removeRange(int fromIndex,
int toIndex)
Not implemented cause of immutable object
|
void |
replaceAll(UnaryOperator<String> operator)
Not implemented cause of immutable object
|
boolean |
retainAll(Collection<?> collection)
Not implemented cause of immutable object
|
String |
set(int index,
String element)
Not implemented cause of immutable object
|
String[] |
toArray() |
static String[] |
toArray(Collection<String> collection) |
List<String> |
toList() |
static char[] |
validateSeparator(char[] separators)
Validates the separator
|
clone, contains, ensureCapacity, forEach, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, size, sort, spliterator, subList, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streamprotected CsvRow(Collection<String> collection)
public static CsvRow csvRowOf(Collection<String> lines)
lines - list of string to be transformedCsvRow with separate columnspublic static List<CsvRow> csvRowListOf(Collection<List<String>> lines)
lines - list of list to be transformedList with separate columnspublic static List<CsvRow> csvRowArrayOf(Collection<String[]> lines)
lines - list of array to be transformedList with separate columnspublic static CsvRow csvRowOf(String... row)
row - input array to be transformedCsvRow with separate columnspublic static CsvRow csvRowOf(String row)
row - input string to be splitCsvRow with separate columnspublic static CsvRow csvRowOf(String row, char... separators)
row - input string to be splitseparators - delimiter to split the inputCsvRow with separate columnspublic static char[] validateSeparator(char[] separators)
separators - separator to validatepublic static String[] toArray(Collection<String> collection)
collection - collection to be transformed to an arraypublic Optional<String> getOpt(int index)
CsvRow.index - index of the column value to returnOptional at the specified position in this list - fallback = Optional#empty() public CsvRow get(int index, char... separators)
CsvRow.index - index of the column value to returnseparators - Splits the CSV rows at the given separatorCsvRow at the specified position - fallback = nullpublic Optional<CsvRow> getOpt(int index, char... separators)
CsvRow.index - index of the column value to returnseparators - Splits the CSV rows at the given separatorOptional at the specified position - Optional#empty() public boolean add(String element)
public void add(int index,
String element)
public boolean addAll(int index,
Collection<? extends String> collection)
public boolean addAll(Collection<? extends String> collection)
public boolean remove(Object remove)
public String remove(int index)
public boolean removeAll(Collection<?> collection)
public boolean removeIf(Predicate<? super String> filter)
public boolean retainAll(Collection<?> collection)
public void replaceAll(UnaryOperator<String> operator)
replaceAll in interface List<String>replaceAll in class ArrayList<String>public void removeRange(int fromIndex,
int toIndex)
removeRange in class ArrayList<String>public void clear()
Copyright © 2023. All rights reserved.