Record Class CoreFeatureAPI.LauncherUpdateInfo
java.lang.Object
java.lang.Record
pro.gravit.launcher.core.api.features.CoreFeatureAPI.LauncherUpdateInfo
- Enclosing interface:
CoreFeatureAPI
-
Constructor Summary
ConstructorsConstructorDescriptionLauncherUpdateInfo(String url, String version, boolean available, boolean required) Creates an instance of aLauncherUpdateInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theavailablerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanrequired()Returns the value of therequiredrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
LauncherUpdateInfo
Creates an instance of aLauncherUpdateInforecord class.- Parameters:
url- the value for theurlrecord componentversion- the value for theversionrecord componentavailable- the value for theavailablerecord componentrequired- the value for therequiredrecord 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
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
available
public boolean available()Returns the value of theavailablerecord component.- Returns:
- the value of the
availablerecord component
-
required
public boolean required()Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-