Package kr.toxicity.model.api.data.raw
Record Class ModelChildren.ModelOutliner
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.raw.ModelChildren.ModelOutliner
- Record Components:
group- groupchildren- children
- All Implemented Interfaces:
ModelChildren
- Enclosing interface:
ModelChildren
public static record ModelChildren.ModelOutliner(@NotNull ModelGroup group, @NotNull @Unmodifiable List<ModelChildren> children)
extends Record
implements ModelChildren
A raw outliner of models.
-
Nested Class Summary
Nested classes/interfaces inherited from interface kr.toxicity.model.api.data.raw.ModelChildren
ModelChildren.ModelOutliner, ModelChildren.ModelUUID -
Field Summary
Fields inherited from interface kr.toxicity.model.api.data.raw.ModelChildren
PARSER -
Constructor Summary
ConstructorsConstructorDescriptionModelOutliner(@NotNull ModelGroup group, @NotNull @Unmodifiable List<ModelChildren> children) Creates an instance of aModelOutlinerrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull @Unmodifiable List<ModelChildren> children()Returns the value of thechildrenrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull Stream<ModelChildren> flatten()Flattens this children tree@NotNull ModelGroupgroup()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.@NotNull BlueprintElementtoBlueprint(@NotNull ModelLoadContext context) Converts children to blueprint childrenfinal StringtoString()Returns a string representation of this record class.@NotNull Stringuuid()Gets uuid
-
Constructor Details
-
ModelOutliner
public ModelOutliner(@NotNull @NotNull ModelGroup group, @NotNull @NotNull @Unmodifiable List<ModelChildren> children) Creates an instance of aModelOutlinerrecord class.
-
-
Method Details
-
toBlueprint
Description copied from interface:ModelChildrenConverts children to blueprint children- Specified by:
toBlueprintin interfaceModelChildren- Parameters:
context- context- Returns:
- children
-
flatten
Description copied from interface:ModelChildrenFlattens this children tree- Specified by:
flattenin interfaceModelChildren- Returns:
- flatten stream
-
uuid
Description copied from interface:ModelChildrenGets uuid- Specified by:
uuidin interfaceModelChildren- Returns:
- uuid
-
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). -
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
children
Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-