Record Class ApiConfiguration.CatFactsProperties
java.lang.Object
java.lang.Record
nl.janboonen.oas.contractfirstdesign.cat.config.ApiConfiguration.CatFactsProperties
- Enclosing class:
ApiConfiguration
-
Constructor Summary
ConstructorsConstructorDescriptionCatFactsProperties(String baseUrl, String apikey, int connectionTimeout) Creates an instance of aCatFactsPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapikey()Returns the value of theapikeyrecord component.baseUrl()Returns the value of thebaseUrlrecord component.intReturns the value of theconnectionTimeoutrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CatFactsProperties
Creates an instance of aCatFactsPropertiesrecord class.- Parameters:
baseUrl- the value for thebaseUrlrecord componentapikey- the value for theapikeyrecord componentconnectionTimeout- the value for theconnectionTimeoutrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
baseUrl
Returns the value of thebaseUrlrecord component.- Returns:
- the value of the
baseUrlrecord component
-
apikey
Returns the value of theapikeyrecord component.- Returns:
- the value of the
apikeyrecord component
-
connectionTimeout
public int connectionTimeout()Returns the value of theconnectionTimeoutrecord component.- Returns:
- the value of the
connectionTimeoutrecord component
-