Package pro.gravit.utils.helper
Record Class CommonHelper.ArgsParseResult
java.lang.Object
java.lang.Record
pro.gravit.utils.helper.CommonHelper.ArgsParseResult
- Enclosing class:
CommonHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionargs()Returns the value of theargsrecord component.Returns the value of theclasspathrecord component.conf()Returns the value of theconfrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.jarFile()Returns the value of thejarFilerecord component.jvmArgs()Returns the value of thejvmArgsrecord component.Returns the value of themainClassrecord component.Returns the value of themainModulerecord component.final StringtoString()Returns a string representation of this record class.
-
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 aArgsParseResultrecord class.- Parameters:
conf- the value for theconfrecord componentclasspath- the value for theclasspathrecord componentjvmArgs- the value for thejvmArgsrecord componentmainClass- the value for themainClassrecord componentmainModule- the value for themainModulerecord componentjarFile- the value for thejarFilerecord componentargs- the value for theargsrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
conf
Returns the value of theconfrecord component.- Returns:
- the value of the
confrecord component
-
classpath
Returns the value of theclasspathrecord component.- Returns:
- the value of the
classpathrecord component
-
jvmArgs
Returns the value of thejvmArgsrecord component.- Returns:
- the value of the
jvmArgsrecord component
-
mainClass
Returns the value of themainClassrecord component.- Returns:
- the value of the
mainClassrecord component
-
mainModule
Returns the value of themainModulerecord component.- Returns:
- the value of the
mainModulerecord component
-
jarFile
Returns the value of thejarFilerecord component.- Returns:
- the value of the
jarFilerecord component
-
args
Returns the value of theargsrecord component.- Returns:
- the value of the
argsrecord component
-