Record Class CommonHelper.ArgsParseResult

java.lang.Object
java.lang.Record
pro.gravit.utils.helper.CommonHelper.ArgsParseResult
Enclosing class:
CommonHelper

public static record CommonHelper.ArgsParseResult(LaunchOptions.ModuleConf conf, List<String> classpath, List<String> jvmArgs, String mainClass, String mainModule, String jarFile, List<String> args) extends Record
  • Constructor Details

    • ArgsParseResult

      public ArgsParseResult(LaunchOptions.ModuleConf conf, List<String> classpath, List<String> jvmArgs, String mainClass, String mainModule, String jarFile, List<String> args)
      Creates an instance of a ArgsParseResult record class.
      Parameters:
      conf - the value for the conf record component
      classpath - the value for the classpath record component
      jvmArgs - the value for the jvmArgs record component
      mainClass - the value for the mainClass record component
      mainModule - the value for the mainModule record component
      jarFile - the value for the jarFile record component
      args - the value for the args 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.
    • conf

      public LaunchOptions.ModuleConf conf()
      Returns the value of the conf record component.
      Returns:
      the value of the conf record component
    • classpath

      public List<String> classpath()
      Returns the value of the classpath record component.
      Returns:
      the value of the classpath record component
    • jvmArgs

      public List<String> jvmArgs()
      Returns the value of the jvmArgs record component.
      Returns:
      the value of the jvmArgs record component
    • mainClass

      public String mainClass()
      Returns the value of the mainClass record component.
      Returns:
      the value of the mainClass record component
    • mainModule

      public String mainModule()
      Returns the value of the mainModule record component.
      Returns:
      the value of the mainModule record component
    • jarFile

      public String jarFile()
      Returns the value of the jarFile record component.
      Returns:
      the value of the jarFile record component
    • args

      public List<String> args()
      Returns the value of the args record component.
      Returns:
      the value of the args record component