Class FieldList
java.lang.Object
com.northconcepts.datapipeline.core.FieldList
See
FieldPath for supported field name expressions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAppends all the specified fields to the end of this list.add(Collection<String> fieldNames) Appends all the fields in the specified collection to the end of this list.clear()Removes all the fields from this list.clone()Returns a new FieldList that is a copy of this FieldList.booleancontainedWithin(String... fieldNames) Returnstrueif the supplied fieldNames contains all the fields names in this list.booleancontainedWithin(List<String> fieldNames) Returnstrueif the supplied fieldNames contains all the fields names in this list.booleanReturnstrueif the supplied fieldNames all are existing in this list.booleanReturnstrueif the supplied fieldNames all are existing in this list.booleanvoidPerforms the given action for each field in this record.get(int index) getFieldPath(int index) Returns the entry at the given index parsed as aFieldPath; parsing also replaces quoted entries in this list with their unquoted form.getList()Returns the backing list of field names, not a copy.inthashCode()booleanisEmpty()booleanbooleanIndicates if all the fields match against a flat record (i.e.iterator()Returns an iterator over the fields in this list.Returns a parallel Stream of the fields in this list.Removes all the fields in the specifiedfieldListfrom this list.Removes all the specified fields from this list.intsize()stream()Returns a sequential Stream of the fields in this list.String[]toArray()toString()Returns the field names joined byfieldSeparator, each formatted withString.format(elementFormat, name).Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
spliterator
-
Constructor Details
-
FieldList
-
-
Method Details
-
iterator
Returns an iterator over the fields in this list. -
clone
Returns a new FieldList that is a copy of this FieldList. -
add
Appends all the specified fields to the end of this list. -
add
Appends all the fields in the specified collection to the end of this list. -
remove
Removes all the specified fields from this list. -
remove
Removes all the fields in the specifiedfieldListfrom this list. -
clear
Removes all the fields from this list. -
contains
Returnstrueif the supplied fieldNames all are existing in this list. -
contains
Returnstrueif the supplied fieldNames all are existing in this list. -
containedWithin
Returnstrueif the supplied fieldNames contains all the fields names in this list. -
containedWithin
Returnstrueif the supplied fieldNames contains all the fields names in this list. -
isEmpty
public boolean isEmpty() -
isNotEmpty
public boolean isNotEmpty() -
size
public int size() -
get
-
getFieldPath
Returns the entry at the given index parsed as aFieldPath; parsing also replaces quoted entries in this list with their unquoted form. -
getList
Returns the backing list of field names, not a copy. -
toArray
-
forEach
Performs the given action for each field in this record. -
stream
Returns a sequential Stream of the fields in this list. -
parallelStream
Returns a parallel Stream of the fields in this list. -
equals
-
isTabular
public boolean isTabular()Indicates if all the fields match against a flat record (i.e. no nested records or array fields). -
hashCode
public int hashCode() -
toString
Returns the field names joined byfieldSeparator, each formatted withString.format(elementFormat, name). -
toString
-
toString
-