Package net.neoforged.elc.configs
Record Class LaunchGroup
java.lang.Object
java.lang.Record
net.neoforged.elc.configs.LaunchGroup
- Record Components:
entries- The list of sub launches to launch.
- All Implemented Interfaces:
LaunchConfig
@Desugar
public record LaunchGroup(List<LaunchGroup.Entry> entries)
extends Record
implements LaunchConfig
This class implements the
org.eclipse.debug.core.groups.GroupLaunchConfigurationType launch configuration type.
This type of config is known in Eclipse as a Launch Group instead of a Launch Configuration.
It is used for launching multiple launch configs in sequence.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents a post-launch action for a Launch Group entry.static classBuilder forLaunchGroup.static final recordRepresents a single launch group entry, which are parameters on how to execute an externalLaunchConfig.static classHolds keys relevant to serialization ofLaunchGroup.static enumLaunch modes for Launch Group entries. -
Constructor Summary
ConstructorsConstructorDescriptionLaunchGroup(List<LaunchGroup.Entry> entries) Creates an instance of aLaunchGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptionSerializes this launch configuration into E-Attribute form forLaunchConfig.write(Writer).static LaunchGroup.Builderbuilder()entries()Returns the value of theentriesrecord component.static LaunchGroup.Entry.Builderfinal booleanIndicates whether some other object is "equal to" this one.getType()Returns the type name that corresponds to this launch config.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from interface net.neoforged.elc.configs.LaunchConfig
write
-
Constructor Details
-
LaunchGroup
Creates an instance of aLaunchGrouprecord class.- Parameters:
entries- the value for theentriesrecord component
-
-
Method Details
-
getType
Description copied from interface:LaunchConfigReturns the type name that corresponds to this launch config.- Specified by:
getTypein interfaceLaunchConfig
-
bakeAttributes
Description copied from interface:LaunchConfigSerializes this launch configuration into E-Attribute form forLaunchConfig.write(Writer).- Specified by:
bakeAttributesin interfaceLaunchConfig- Returns:
- A list containing all E-Attributes that make up this launch config.
-
builder
-
entry
-
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). -
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-