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 ModelGroupgroup()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.@NotNull BlueprintChildrentoBlueprint(@NotNull Map<String, ModelElement> elementMap, @NotNull Map<String, ModelGroup> groupMap) Converts children to blueprint childrenfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelOutliner
public ModelOutliner(@NotNull @NotNull ModelGroup group, @NotNull @NotNull @Unmodifiable List<ModelChildren> children) Creates an instance of aModelOutlinerrecord class.
-
-
Method Details
-
toBlueprint
@NotNull public @NotNull BlueprintChildren toBlueprint(@NotNull @NotNull Map<String, ModelElement> elementMap, @NotNull @NotNull Map<String, ModelGroup> groupMap) Description copied from interface:ModelChildrenConverts children to blueprint children- Specified by:
toBlueprintin interfaceModelChildren- Parameters:
elementMap- element mapgroupMap- group map- Returns:
- children
-
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
-