Record Class ExternalApiMetadata
java.lang.Object
java.lang.Record
org.chenile.core.external.ExternalApiMetadata
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExternalApiMetadata(boolean enabled, String system, String operation) Creates an instance of aExternalApiMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.static ExternalApiMetadatafrom(ChenileExchange exchange) final inthashCode()Returns a hash code value for this object.Returns the value of theoperationrecord component.system()Returns the value of thesystemrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
enabled
private final boolean enabledThe field for theenabledrecord component. -
system
The field for thesystemrecord component. -
operation
The field for theoperationrecord component.
-
-
Constructor Details
-
ExternalApiMetadata
Creates an instance of aExternalApiMetadatarecord class.- Parameters:
enabled- the value for theenabledrecord componentsystem- the value for thesystemrecord componentoperation- the value for theoperationrecord component
-
-
Method Details
-
from
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
system
Returns the value of thesystemrecord component.- Returns:
- the value of the
systemrecord component
-
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-