Record Class MetadataImpl
java.lang.Object
java.lang.Record
me.rochblondiaux.blockbench.model.metadata.MetadataImpl
- All Implemented Interfaces:
Metadata
-
Constructor Summary
ConstructorsConstructorDescriptionMetadataImpl(String formatVersion, String modelFormat, boolean boxUv) Creates an instance of aMetadataImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanboxUv()Returns the value of theboxUvrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theformatVersionrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themodelFormatrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MetadataImpl
Creates an instance of aMetadataImplrecord class.- Parameters:
formatVersion- the value for theformatVersionrecord componentmodelFormat- the value for themodelFormatrecord componentboxUv- the value for theboxUvrecord 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 '=='. -
formatVersion
Returns the value of theformatVersionrecord component.- Specified by:
formatVersionin interfaceMetadata- Returns:
- the value of the
formatVersionrecord component
-
modelFormat
Returns the value of themodelFormatrecord component.- Specified by:
modelFormatin interfaceMetadata- Returns:
- the value of the
modelFormatrecord component
-
boxUv
public boolean boxUv()Returns the value of theboxUvrecord component.
-