Record Class HeaderMapper.LayoutResult

java.lang.Object
java.lang.Record
com.raphaelsalles.backend.domain.service.importer.csv.HeaderMapper.LayoutResult
Enclosing class:
HeaderMapper

public static record HeaderMapper.LayoutResult(Map<String,Integer> map, boolean isFallback, Integer scaleIndex) extends Record
DTO contendo o mapa de índices e metadados do layout identificado.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final boolean
    The field for the isFallback record component.
    private final Map<String,Integer>
    The field for the map record component.
    private final Integer
    The field for the scaleIndex record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    LayoutResult(Map<String,Integer> map, boolean isFallback, Integer scaleIndex)
    Creates an instance of a LayoutResult record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the isFallback record component.
    map()
    Returns the value of the map record component.
    Returns the value of the scaleIndex record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

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

    • map

      private final Map<String,Integer> map
      The field for the map record component.
    • isFallback

      private final boolean isFallback
      The field for the isFallback record component.
    • scaleIndex

      private final Integer scaleIndex
      The field for the scaleIndex record component.
  • Constructor Details

    • LayoutResult

      public LayoutResult(Map<String,Integer> map, boolean isFallback, Integer scaleIndex)
      Creates an instance of a LayoutResult record class.
      Parameters:
      map - the value for the map record component
      isFallback - the value for the isFallback record component
      scaleIndex - the value for the scaleIndex record component
  • Method Details

    • toString

      public final 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
    • hashCode

      public final 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 final boolean equals(Object o)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • map

      public Map<String,Integer> map()
      Returns the value of the map record component.
      Returns:
      the value of the map record component
    • isFallback

      public boolean isFallback()
      Returns the value of the isFallback record component.
      Returns:
      the value of the isFallback record component
    • scaleIndex

      public Integer scaleIndex()
      Returns the value of the scaleIndex record component.
      Returns:
      the value of the scaleIndex record component