Record Class Parsed3<ARGS_TYPE_1,ARGS_TYPE_2,ARGS_TYPE_3>

java.lang.Object
java.lang.Record
dev.nipafx.args.Parsed3<ARGS_TYPE_1,ARGS_TYPE_2,ARGS_TYPE_3>
Type Parameters:
ARGS_TYPE_1 - first args type passed to Args::parse
ARGS_TYPE_2 - second args type passed to Args::parse
ARGS_TYPE_3 - third args type passed to Args::parse
Record Components:
first - instance of the first args type passed to Args::parse
second - instance of the second args type passed to Args::parse
third - instance of the third args type passed to Args::parse

public record Parsed3<ARGS_TYPE_1,ARGS_TYPE_2,ARGS_TYPE_3>(ARGS_TYPE_1 first, ARGS_TYPE_2 second, ARGS_TYPE_3 third) extends Record
Result of parsing arguments to three args records with Args.parse(String[], Class, Class, Class).
  • Constructor Details

    • Parsed3

      public Parsed3(ARGS_TYPE_1 first, ARGS_TYPE_2 second, ARGS_TYPE_3 third)
      Creates an instance of a Parsed3 record class.
      Parameters:
      first - the value for the first record component
      second - the value for the second record component
      third - the value for the third 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.
    • first

      public ARGS_TYPE_1 first()
      Returns the value of the first record component.
      Returns:
      the value of the first record component
    • second

      public ARGS_TYPE_2 second()
      Returns the value of the second record component.
      Returns:
      the value of the second record component
    • third

      public ARGS_TYPE_3 third()
      Returns the value of the third record component.
      Returns:
      the value of the third record component