Record Class ClassEditorDialog.Result
java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.ui.dialogs.ClassEditorDialog.Result
- Record Components:
conceptualName- name value to usetechnicalName- name value to usetextColor- color value to usebackgroundColor- color value to useborderColor- color value to usevisibleInConceptual- whether visible in conceptual is enabledvisibleInLogical- whether visible in logical is enabledvisibleInPhysical- whether visible in physical is enabled
- Enclosing class:
ClassEditorDialog
public static record ClassEditorDialog.Result(String conceptualName, String technicalName, Color textColor, Color backgroundColor, Color borderColor, boolean visibleInConceptual, boolean visibleInLogical, boolean visibleInPhysical)
extends Record
Immutable value object for result data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundColorrecord component.Returns the value of theborderColorrecord component.Returns the value of theconceptualNamerecord 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 thetechnicalNamerecord component.Returns the value of thetextColorrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thevisibleInConceptualrecord component.booleanReturns the value of thevisibleInLogicalrecord component.booleanReturns the value of thevisibleInPhysicalrecord component.
-
Constructor Details
-
Result
public Result(String conceptualName, String technicalName, Color textColor, Color backgroundColor, Color borderColor, boolean visibleInConceptual, boolean visibleInLogical, boolean visibleInPhysical) Creates an instance of aResultrecord class.- Parameters:
conceptualName- the value for theconceptualNamerecord componenttechnicalName- the value for thetechnicalNamerecord componenttextColor- the value for thetextColorrecord componentbackgroundColor- the value for thebackgroundColorrecord componentborderColor- the value for theborderColorrecord componentvisibleInConceptual- the value for thevisibleInConceptualrecord componentvisibleInLogical- the value for thevisibleInLogicalrecord componentvisibleInPhysical- the value for thevisibleInPhysicalrecord 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 '=='. -
conceptualName
Returns the value of theconceptualNamerecord component.- Returns:
- the value of the
conceptualNamerecord component
-
technicalName
Returns the value of thetechnicalNamerecord component.- Returns:
- the value of the
technicalNamerecord component
-
textColor
Returns the value of thetextColorrecord component.- Returns:
- the value of the
textColorrecord component
-
backgroundColor
Returns the value of thebackgroundColorrecord component.- Returns:
- the value of the
backgroundColorrecord component
-
borderColor
Returns the value of theborderColorrecord component.- Returns:
- the value of the
borderColorrecord component
-
visibleInConceptual
public boolean visibleInConceptual()Returns the value of thevisibleInConceptualrecord component.- Returns:
- the value of the
visibleInConceptualrecord component
-
visibleInLogical
public boolean visibleInLogical()Returns the value of thevisibleInLogicalrecord component.- Returns:
- the value of the
visibleInLogicalrecord component
-
visibleInPhysical
public boolean visibleInPhysical()Returns the value of thevisibleInPhysicalrecord component.- Returns:
- the value of the
visibleInPhysicalrecord component
-