Record Class CsvSupport.ColumnIndexes

java.lang.Object
java.lang.Record
io.jenetics.ext.util.CsvSupport.ColumnIndexes
Record Components:
values - the column indexes which are part of the split result
Enclosing class:
CsvSupport

public static record CsvSupport.ColumnIndexes(int[] values) extends Record
Holds the column indexes, which should be part of the split or join operation. When used in the CsvSupport.LineSplitter, it lets you filter the split column and define its order. When used in the CsvSupport.ColumnJoiner, it can be used to define the column index in the resulting CSV for a given row array.
Since:
8.1
Version:
8.1
See Also:
API Note:
The column indexes is thread-safe and can be shared between different threads.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Indicating that all columns should be part of the split result.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ColumnIndexes(int... values)
    Create a new column indexes object.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns a hash code value for this object.
    Returns a string representation of this record class.
    int[]
    Returns the value of the values record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • ColumnIndexes

      public ColumnIndexes(int... values)
      Create a new column indexes object.
      Parameters:
      values - the column indexes
  • Method Details

    • values

      public int[] values()
      Returns the value of the values record component.
      Returns:
      the value of the values record component
    • hashCode

      public int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public boolean equals(Object obj)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      obj - the object with which to compare
      Returns:
      true if this object is the same as the obj argument; false otherwise.
    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object