Package kr.toxicity.model.api.data.raw
Record Class ModelElement.Unsupported
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.raw.ModelElement.Unsupported
- Record Components:
type- unsupported type
- All Implemented Interfaces:
ModelElement
- Enclosing interface:
ModelElement
public static record ModelElement.Unsupported(@NotNull String type)
extends Record
implements ModelElement
Unsupported model's object
-
Nested Class Summary
Nested classes/interfaces inherited from interface kr.toxicity.model.api.data.raw.ModelElement
ModelElement.Camera, ModelElement.Cube, ModelElement.Locator, ModelElement.NullObject, ModelElement.Unsupported -
Field Summary
Fields inherited from interface kr.toxicity.model.api.data.raw.ModelElement
PARSER -
Constructor Summary
ConstructorsConstructorDescriptionUnsupported(@NotNull String type) Creates an instance of aUnsupportedrecord class. -
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.booleanChecks this element is supported@NotNull BlueprintElementConverts to blueprintfinal StringtoString()Returns a string representation of this record class.@NotNull Stringtype()Returns the value of thetyperecord component.@NotNull Stringuuid()Gets uuid
-
Constructor Details
-
Unsupported
Creates an instance of aUnsupportedrecord class.- Parameters:
type- the value for thetyperecord component
-
-
Method Details
-
uuid
Description copied from interface:ModelElementGets uuid- Specified by:
uuidin interfaceModelElement- Returns:
- uuid
-
isSupported
public boolean isSupported()Description copied from interface:ModelElementChecks this element is supported- Specified by:
isSupportedin interfaceModelElement- Returns:
- supported
-
toBlueprint
Description copied from interface:ModelElementConverts to blueprint- Specified by:
toBlueprintin interfaceModelElement- Returns:
- blueprint
-
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). -
type
Returns the value of thetyperecord component.- Specified by:
typein interfaceModelElement- Returns:
- the value of the
typerecord component
-