Record Class BlocklyCompileNote
java.lang.Object
java.lang.Record
net.mcreator.blockly.BlocklyCompileNote
- All Implemented Interfaces:
Comparable<BlocklyCompileNote>
public record BlocklyCompileNote(BlocklyCompileNote.Type type, String message)
extends Record
implements Comparable<BlocklyCompileNote>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBlocklyCompileNote(BlocklyCompileNote.Type type, String message) Creates an instance of aBlocklyCompileNoterecord class. -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.toString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
BlocklyCompileNote
Creates an instance of aBlocklyCompileNoterecord class.- Parameters:
type- the value for thetyperecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<BlocklyCompileNote>
-
getValidationResultType
-
hashCode
-
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.- Returns:
- the value of the
typerecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-