Record Class ConfigMerger.MergeResult

java.lang.Object
java.lang.Record
org.apache.tika.pipes.core.config.ConfigMerger.MergeResult
Record Components:
configPath - path to the merged configuration file
fetcherId - the primary generated fetcher ID (may be null if no fetchers were added)
emitterId - the primary generated emitter ID (may be null if no emitters were added)
Enclosing class:
ConfigMerger

public static record ConfigMerger.MergeResult(Path configPath, String fetcherId, String emitterId) extends Record
Result of a config merge operation.
  • Constructor Details

    • MergeResult

      public MergeResult(Path configPath, String fetcherId, String emitterId)
      Creates an instance of a MergeResult record class.
      Parameters:
      configPath - the value for the configPath record component
      fetcherId - the value for the fetcherId record component
      emitterId - the value for the emitterId 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • configPath

      public Path configPath()
      Returns the value of the configPath record component.
      Returns:
      the value of the configPath record component
    • fetcherId

      public String fetcherId()
      Returns the value of the fetcherId record component.
      Returns:
      the value of the fetcherId record component
    • emitterId

      public String emitterId()
      Returns the value of the emitterId record component.
      Returns:
      the value of the emitterId record component