Package org.umlg.sqlg.structure
Record Class Multiplicity
java.lang.Object
java.lang.Record
org.umlg.sqlg.structure.Multiplicity
-
Constructor Summary
ConstructorDescriptionMultiplicity
(long lower, long upper, boolean unique, boolean ordered) Creates an instance of aMultiplicity
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.static Multiplicity
fromNotifyJson
(com.fasterxml.jackson.databind.JsonNode jsonNode) final int
hashCode()
Returns a hash code value for this object.boolean
boolean
isMany()
boolean
isOne()
boolean
long
lower()
Returns the value of thelower
record component.static Multiplicity
of()
static Multiplicity
of
(long lower, long higher) static Multiplicity
of
(long lower, long higher, boolean unique) boolean
ordered()
Returns the value of theordered
record component.toCheckConstraint
(String column) com.fasterxml.jackson.databind.node.ObjectNode
toString()
Returns a string representation of this record class.boolean
unique()
Returns the value of theunique
record component.long
upper()
Returns the value of theupper
record component.
-
Constructor Details
-
Multiplicity
public Multiplicity(long lower, long upper, boolean unique, boolean ordered) Creates an instance of aMultiplicity
record class.- Parameters:
lower
- the value for thelower
record componentupper
- the value for theupper
record componentunique
- the value for theunique
record componentordered
- the value for theordered
record component
-
-
Method Details
-
of
-
of
-
of
-
isMany
public boolean isMany() -
isOne
public boolean isOne() -
isRequired
public boolean isRequired() -
hasLimits
public boolean hasLimits() -
toCheckConstraint
-
toNotifyJson
public com.fasterxml.jackson.databind.node.ObjectNode toNotifyJson() -
fromNotifyJson
-
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. All components in this record class are compared with '=='. -
lower
public long lower()Returns the value of thelower
record component.- Returns:
- the value of the
lower
record component
-
upper
public long upper()Returns the value of theupper
record component.- Returns:
- the value of the
upper
record component
-
unique
public boolean unique()Returns the value of theunique
record component.- Returns:
- the value of the
unique
record component
-
ordered
public boolean ordered()Returns the value of theordered
record component.- Returns:
- the value of the
ordered
record component
-