Record Class AuthDeviceFlowDetails
java.lang.Object
java.lang.Record
pro.gravit.launcher.core.api.method.details.AuthDeviceFlowDetails
- All Implemented Interfaces:
AuthMethodDetails
public record AuthDeviceFlowDetails(String url, Supplier<CompletableFuture<AuthDeviceFlowDetails.AuthDeviceFlowDetailsData>> dataSupplier, boolean externalBrowserSupport)
extends Record
implements AuthMethodDetails
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionAuthDeviceFlowDetails(String url, Supplier<CompletableFuture<AuthDeviceFlowDetails.AuthDeviceFlowDetailsData>> dataSupplier, boolean externalBrowserSupport) Creates an instance of aAuthDeviceFlowDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedataSupplierrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theexternalBrowserSupportrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
AuthDeviceFlowDetails
public AuthDeviceFlowDetails(String url, Supplier<CompletableFuture<AuthDeviceFlowDetails.AuthDeviceFlowDetailsData>> dataSupplier, boolean externalBrowserSupport) Creates an instance of aAuthDeviceFlowDetailsrecord class.- Parameters:
url- the value for theurlrecord componentdataSupplier- the value for thedataSupplierrecord componentexternalBrowserSupport- the value for theexternalBrowserSupportrecord component
-
-
Method Details
-
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. -
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
dataSupplier
Returns the value of thedataSupplierrecord component.- Returns:
- the value of the
dataSupplierrecord component
-
externalBrowserSupport
public boolean externalBrowserSupport()Returns the value of theexternalBrowserSupportrecord component.- Returns:
- the value of the
externalBrowserSupportrecord component
-