Record Class LauncherAPIInitializer.Options
java.lang.Object
java.lang.Record
pro.gravit.launcher.client.LauncherAPIInitializer.Options
- Enclosing class:
LauncherAPIInitializer
public static record LauncherAPIInitializer.Options(LauncherAPIInitializer.ApiMode mode, boolean offlineOnConnectionFail, boolean microsoftEnabled, String microsoftClientId, String microsoftClientSecret)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOptions(LauncherAPIInitializer.ApiMode mode, boolean offlineOnConnectionFail, boolean microsoftEnabled, String microsoftClientId, String microsoftClientSecret) Creates an instance of aOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themicrosoftClientIdrecord component.Returns the value of themicrosoftClientSecretrecord component.booleanReturns the value of themicrosoftEnabledrecord component.mode()Returns the value of themoderecord component.booleanReturns the value of theofflineOnConnectionFailrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Options
public Options(LauncherAPIInitializer.ApiMode mode, boolean offlineOnConnectionFail, boolean microsoftEnabled, String microsoftClientId, String microsoftClientSecret) Creates an instance of aOptionsrecord class.- Parameters:
mode- the value for themoderecord componentofflineOnConnectionFail- the value for theofflineOnConnectionFailrecord componentmicrosoftEnabled- the value for themicrosoftEnabledrecord componentmicrosoftClientId- the value for themicrosoftClientIdrecord componentmicrosoftClientSecret- the value for themicrosoftClientSecretrecord 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. -
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
offlineOnConnectionFail
public boolean offlineOnConnectionFail()Returns the value of theofflineOnConnectionFailrecord component.- Returns:
- the value of the
offlineOnConnectionFailrecord component
-
microsoftEnabled
public boolean microsoftEnabled()Returns the value of themicrosoftEnabledrecord component.- Returns:
- the value of the
microsoftEnabledrecord component
-
microsoftClientId
Returns the value of themicrosoftClientIdrecord component.- Returns:
- the value of the
microsoftClientIdrecord component
-
microsoftClientSecret
Returns the value of themicrosoftClientSecretrecord component.- Returns:
- the value of the
microsoftClientSecretrecord component
-