Record Class TokenResponse
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fr.enedis.dto.auth.TokenResponse
-
Constructor Summary
ConstructorsConstructorDescriptionTokenResponse(String accessToken, String tokenType, int expires_in, String scope) Creates an instance of aTokenResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theexpires_inrecord component.final inthashCode()Returns a hash code value for this object.scope()Returns the value of thescoperecord component.Returns the value of thetokenTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TokenResponse
Creates an instance of aTokenResponserecord class.- Parameters:
accessToken- the value for theaccessTokenrecord componenttokenType- the value for thetokenTyperecord componentexpires_in- the value for theexpires_inrecord componentscope- the value for thescoperecord 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 '=='. -
accessToken
Returns the value of theaccessTokenrecord component.- Returns:
- the value of the
accessTokenrecord component
-
tokenType
Returns the value of thetokenTyperecord component.- Returns:
- the value of the
tokenTyperecord component
-
expires_in
public int expires_in()Returns the value of theexpires_inrecord component.- Returns:
- the value of the
expires_inrecord component
-
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-