Record Class CanonicalOperationRef
java.lang.Object
java.lang.Record
org.praxisplatform.uischema.openapi.CanonicalOperationRef
public record CanonicalOperationRef(String group, String operationId, String path, String method)
extends Record
Referencia canonica para uma operacao OpenAPI concreta.
Quando esta referencia nasce apenas de path + method, o campo
operationId pode ser null. Chamadores que exigem operationId nao nulo
devem resolver a operacao a partir de um HandlerMethod concreto ou por
resolveByOperationId.
-
Constructor Summary
ConstructorsConstructorDescriptionCanonicalOperationRef(String group, String operationId, String path, String method) Creates an instance of aCanonicalOperationRefrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.Returns the value of theoperationIdrecord component.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CanonicalOperationRef
Creates an instance of aCanonicalOperationRefrecord class.- Parameters:
group- the value for thegrouprecord componentoperationId- the value for theoperationIdrecord componentpath- the value for thepathrecord componentmethod- the value for themethodrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
operationId
Returns the value of theoperationIdrecord component.- Returns:
- the value of the
operationIdrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-