Record Class LaunchedClient.Licence
java.lang.Object
java.lang.Record
com.botwithus.bot.api.script.LaunchedClient.Licence
- Record Components:
state- its statefailures- consecutive failed refresheslastError- the last refresh error, if one was recorded
- Enclosing class:
LaunchedClient
public static record LaunchedClient.Licence(LaunchedClient.LicenceState state, int failures, Optional<String> lastError)
extends Record
A client's licence.
-
Constructor Summary
ConstructorsConstructorDescriptionLicence(LaunchedClient.LicenceState state, int failures, Optional<String> lastError) Creates an instance of aLicencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfailures()Returns the value of thefailuresrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelastErrorrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. -
state
-
failures
-
lastError
-