Record Class UserDevRunType
java.lang.Object
java.lang.Record
net.neoforged.moddevgradle.internal.UserDevRunType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionargs()Returns the value of theargsrecord component.env()Returns the value of theenvrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.jvmArgs()Returns the value of thejvmArgsrecord component.main()Returns the value of themainrecord component.props()Returns the value of thepropsrecord component.booleanReturns the value of thesingleInstancerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UserDevRunType
public UserDevRunType(boolean singleInstance, String main, List<String> args, List<String> jvmArgs, Map<String, String> env, Map<String, String> props) Creates an instance of aUserDevRunTyperecord class.- Parameters:
singleInstance- the value for thesingleInstancerecord componentmain- the value for themainrecord componentargs- the value for theargsrecord componentjvmArgs- the value for thejvmArgsrecord componentenv- the value for theenvrecord componentprops- the value for thepropsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
singleInstance
public boolean singleInstance()Returns the value of thesingleInstancerecord component.- Returns:
- the value of the
singleInstancerecord component
-
main
Returns the value of themainrecord component.- Returns:
- the value of the
mainrecord component
-
args
Returns the value of theargsrecord component.- Returns:
- the value of the
argsrecord component
-
jvmArgs
Returns the value of thejvmArgsrecord component.- Returns:
- the value of the
jvmArgsrecord component
-
env
Returns the value of theenvrecord component.- Returns:
- the value of the
envrecord component
-
props
Returns the value of thepropsrecord component.- Returns:
- the value of the
propsrecord component
-