Package dev.enola.model.enola.meta.io
Record Class Context
java.lang.Object
java.lang.Record
dev.enola.model.enola.meta.io.Context
-
Constructor Summary
ConstructorsConstructorDescriptionContext(Schema schema, NamespaceConverter nsc, ThingByIdProvider tp) Creates an instance of aContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.nsc()Returns the value of thenscrecord component.schema()Returns the value of theschemarecord component.final StringtoString()Returns a string representation of this record class.tp()Returns the value of thetprecord component.
-
Constructor Details
-
Context
Creates an instance of aContextrecord class.- Parameters:
schema- the value for theschemarecord componentnsc- the value for thenscrecord componenttp- the value for thetprecord 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
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 withObjects::equals(Object,Object). -
schema
Returns the value of theschemarecord component.- Returns:
- the value of the
schemarecord component
-
nsc
Returns the value of thenscrecord component.- Returns:
- the value of the
nscrecord component
-
tp
Returns the value of thetprecord component.- Returns:
- the value of the
tprecord component
-