Record Class DiscriminatorValue.Literal
java.lang.Object
java.lang.Record
org.hibernate.metamodel.mapping.DiscriminatorValue.Literal
- All Implemented Interfaces:
Serializable, DiscriminatorValue
- Enclosing interface:
DiscriminatorValue
public static record DiscriminatorValue.Literal(Object value)
extends Record
implements DiscriminatorValue
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface DiscriminatorValue
DiscriminatorValue.Literal, DiscriminatorValue.Special -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Literal
Creates an instance of aLiteralrecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
toString
-
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 withObjects::equals(Object,Object). -
hashCode
-
value
Returns the value of thevaluerecord component.- Specified by:
valuein interfaceDiscriminatorValue- Returns:
- the value of the
valuerecord component
-