Record Class DatabaseManager.StructureInsertResult
java.lang.Object
java.lang.Record
nl.pim16aap2.animatedarchitecture.core.managers.DatabaseManager.StructureInsertResult
- Record Components:
structure- The structure as it was inserted into the database. This will be empty when inserted failed.cancelled- Whether the insertion was cancelled. An insertion may be cancelled if some listener cancels theIStructurePrepareCreateEventevent.
- Enclosing class:
DatabaseManager
-
Constructor Summary
ConstructorsConstructorDescriptionStructureInsertResult(Optional<Structure> structure, boolean cancelled) Creates an instance of aStructureInsertResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecancelledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thestructurerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StructureInsertResult
-
-
Method Details
-
toString
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
structure
-
cancelled
-