Record Components:
name - name value to read, write, or display
technicalName - name value to use
primaryKey - whether primary key is enabled
unique - whether unique is enabled
notNull - whether not null is enabled
textColor - color value to use
backgroundColor - color value to use
moveDelta - numeric move delta value
type - type value that selects the operation mode
technicalOnly - whether technical only is enabled
Enclosing class:
FieldEditorDialog
public static record FieldEditorDialog.Result (
String name,
String technicalName, boolean primaryKey, boolean unique, boolean notNull,
Color textColor,
Color backgroundColor, int moveDelta,
String type, boolean technicalOnly)
extends Record
Immutable value object for result data.
Constructor Summary
Constructors
Result (String name,
String technicalName,
boolean primaryKey,
boolean unique,
boolean notNull,
Color textColor,
Color backgroundColor,
int moveDelta,
String type,
boolean technicalOnly)
Creates an instance of a Result record class.
Method Summary
All Methods Instance Methods Concrete Methods
final boolean
Indicates whether some other object is "equal to" this one.
final int
Returns a hash code value for this object.
int
Returns the value of the
moveDelta record component.
Returns the value of the
name record component.
boolean
Returns the value of the
notNull record component.
boolean
Returns the value of the
primaryKey record component.
boolean
Returns the value of the
textColor record component.
Returns a string representation of this record class.
Returns the value of the
type record component.
boolean
Returns the value of the
unique record component.
Constructor Details
Result
public Result (String name,
String technicalName,
boolean primaryKey,
boolean unique,
boolean notNull,
Color textColor,
Color backgroundColor,
int moveDelta,
String type,
boolean technicalOnly)
Creates an instance of a Result record class.
Parameters:
name - the value for the name record component
technicalName - the value for the technicalName record component
primaryKey - the value for the primaryKey record component
unique - the value for the unique record component
notNull - the value for the notNull record component
textColor - the value for the textColor record component
backgroundColor - the value for the backgroundColor record component
moveDelta - the value for the moveDelta record component
type - the value for the type record component
technicalOnly - the value for the technicalOnly record component
Method Details
toString
public final String 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.
Specified by:
toString in class Record
Returns:
a string representation of this object
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.
Specified by:
hashCode in class Record
Returns:
a hash code value for this object
equals
public final boolean equals (Object o)
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 with
Objects::equals(Object,Object); primitive components are compared with '=='.
Specified by:
equals in class Record
Parameters:
o - the object with which to compare
Returns:
true if this object is the same as the o argument; false otherwise.
name
Returns the value of the
name record component.
Returns:
the value of the name record component
technicalName
Returns:
the value of the technicalName record component
primaryKey
public boolean primaryKey ()
Returns the value of the
primaryKey record component.
Returns:
the value of the primaryKey record component
unique
public boolean unique ()
Returns the value of the
unique record component.
Returns:
the value of the unique record component
notNull
public boolean notNull ()
Returns the value of the
notNull record component.
Returns:
the value of the notNull record component
textColor
Returns the value of the
textColor record component.
Returns:
the value of the textColor record component
backgroundColor
public Color backgroundColor ()
Returns:
the value of the backgroundColor record component
moveDelta
public int moveDelta ()
Returns the value of the
moveDelta record component.
Returns:
the value of the moveDelta record component
type
Returns the value of the
type record component.
Returns:
the value of the type record component
technicalOnly
public boolean technicalOnly ()
Returns:
the value of the technicalOnly record component