Package pro.gravit.launcher.base.request
Record Class RequestFeatureAPIImpl.UpdateInfoData
java.lang.Object
java.lang.Record
pro.gravit.launcher.base.request.RequestFeatureAPIImpl.UpdateInfoData
- All Implemented Interfaces:
pro.gravit.launcher.core.api.features.ProfileFeatureAPI.UpdateInfo
- Enclosing class:
RequestFeatureAPIImpl
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateInfoData(pro.gravit.launcher.core.hasher.HashedDir hdir, String url) Creates an instance of aUpdateInfoDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.pro.gravit.launcher.core.hasher.HashedDirgetUrl()final inthashCode()Returns a hash code value for this object.pro.gravit.launcher.core.hasher.HashedDirhdir()Returns the value of thehdirrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
UpdateInfoData
Creates an instance of aUpdateInfoDatarecord class.- Parameters:
hdir- the value for thehdirrecord componenturl- the value for theurlrecord component
-
-
Method Details
-
getHashedDir
public pro.gravit.launcher.core.hasher.HashedDir getHashedDir()- Specified by:
getHashedDirin interfacepro.gravit.launcher.core.api.features.ProfileFeatureAPI.UpdateInfo
-
getUrl
- Specified by:
getUrlin interfacepro.gravit.launcher.core.api.features.ProfileFeatureAPI.UpdateInfo
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
hdir
public pro.gravit.launcher.core.hasher.HashedDir hdir()Returns the value of thehdirrecord component.- Returns:
- the value of the
hdirrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-