Package de.yamass.redg.schema.model
Record Class Constraint
java.lang.Object
java.lang.Record
de.yamass.redg.schema.model.Constraint
public record Constraint(String schemaName, String name, ConstraintType type, String definition, boolean partial)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionConstraint(String schemaName, String name, ConstraintType type, String definition, boolean partial) Creates an instance of aConstraintrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefinitionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.booleanpartial()Returns the value of thepartialrecord component.Returns the value of theschemaNamerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Constraint
public Constraint(String schemaName, String name, ConstraintType type, String definition, boolean partial) Creates an instance of aConstraintrecord class.- Parameters:
schemaName- the value for theschemaNamerecord componentname- the value for thenamerecord componenttype- the value for thetyperecord componentdefinition- the value for thedefinitionrecord componentpartial- the value for thepartialrecord 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 '=='. -
schemaName
Returns the value of theschemaNamerecord component.- Returns:
- the value of the
schemaNamerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
definition
Returns the value of thedefinitionrecord component.- Returns:
- the value of the
definitionrecord component
-
partial
public boolean partial()Returns the value of thepartialrecord component.- Returns:
- the value of the
partialrecord component
-