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 SummaryFieldsModifier 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 ComponentThe field for thetitlerecord component.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
idThe field for theidrecord component.
- 
titleThe field for thetitlerecord component.
- 
isEnabledByDefaultprivate final boolean isEnabledByDefaultThe field for theisEnabledByDefaultrecord component.
- 
parentsThe field for theparentsrecord component.
 
- 
- 
Constructor Details- 
GroupDatapublic GroupData(String id, @Nullable Component title, boolean isEnabledByDefault, String[] parents) Creates an instance of aGroupDatarecord class.- Parameters:
- id- the value for the- idrecord component
- title- the value for the- titlerecord component
- isEnabledByDefault- the value for the- isEnabledByDefaultrecord component
- parents- the value for the- parentsrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
idReturns the value of theidrecord component.- Returns:
- the value of the idrecord component
 
- 
titleReturns the value of thetitlerecord component.- Returns:
- the value of the titlerecord component
 
- 
isEnabledByDefaultpublic boolean isEnabledByDefault()Returns the value of theisEnabledByDefaultrecord component.- Returns:
- the value of the isEnabledByDefaultrecord component
 
- 
parentsReturns the value of theparentsrecord component.- Returns:
- the value of the parentsrecord component
 
 
-