Record Class Schema
java.lang.Object
java.lang.Record
org.infinispan.rest.framework.openapi.Schema
- All Implemented Interfaces:
JsonSerialization
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?> clazz()Returns the value of theclazzrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanname()toJson()final StringtoString()Returns a string representation of this record class.
-
Field Details
-
BOOLEAN
-
INTEGER
-
LONG
-
STRING
-
NONE
-
STRING_ARRAY
-
-
Constructor Details
-
Schema
Creates an instance of aSchemarecord class.- Parameters:
clazz- the value for theclazzrecord component
-
-
Method Details
-
name
-
isPrimitive
public boolean isPrimitive() -
toJson
- Specified by:
toJsonin interfaceJsonSerialization
-
toString
-
hashCode
-
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). -
clazz
Returns the value of theclazzrecord component.- Returns:
- the value of the
clazzrecord component
-