Package net.neoforged.testframework.impl
Record Class FrameworkCollectors.GroupData
java.lang.Object
java.lang.Record
net.neoforged.testframework.impl.FrameworkCollectors.GroupData
- Enclosing class:
FrameworkCollectors
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theidrecord component.private final booleanThe field for theisEnabledByDefaultrecord component.private final String[]The field for theparentsrecord component.private final @Nullable ComponentThe field for thetitlerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanReturns the value of theisEnabledByDefaultrecord component.String[]parents()Returns the value of theparentsrecord component.@Nullable Componenttitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
title
The field for thetitlerecord component. -
isEnabledByDefault
private final boolean isEnabledByDefaultThe field for theisEnabledByDefaultrecord component. -
parents
The field for theparentsrecord component.
-
-
Constructor Details
-
GroupData
public GroupData(String id, @Nullable @Nullable Component title, boolean isEnabledByDefault, String[] parents) Creates an instance of aGroupDatarecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componentisEnabledByDefault- the value for theisEnabledByDefaultrecord componentparents- the value for theparentsrecord 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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
isEnabledByDefault
public boolean isEnabledByDefault()Returns the value of theisEnabledByDefaultrecord component.- Returns:
- the value of the
isEnabledByDefaultrecord component
-
parents
Returns the value of theparentsrecord component.- Returns:
- the value of the
parentsrecord component
-