Record Class RemoteProfilesProvider.HttpProfile
java.lang.Object
java.lang.Record
pro.gravit.launchserver.auth.profiles.RemoteProfilesProvider.HttpProfile
- All Implemented Interfaces:
ProfilesProvider.CompletedProfile, ProfilesProvider.UncompletedProfile
- Enclosing class:
RemoteProfilesProvider
public static record RemoteProfilesProvider.HttpProfile(pro.gravit.launcher.base.profiles.ClientProfile profile, pro.gravit.launcher.core.hasher.HashedDir clientDir, pro.gravit.launcher.core.hasher.HashedDir assetDir)
extends Record
implements ProfilesProvider.CompletedProfile
-
Constructor Summary
ConstructorsConstructorDescriptionHttpProfile(pro.gravit.launcher.base.profiles.ClientProfile profile, pro.gravit.launcher.core.hasher.HashedDir clientDir, pro.gravit.launcher.core.hasher.HashedDir assetDir) Creates an instance of aHttpProfilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionpro.gravit.launcher.core.hasher.HashedDirassetDir()Returns the value of theassetDirrecord component.pro.gravit.launcher.core.hasher.HashedDirReturns the value of theclientDirrecord component.final booleanIndicates whether some other object is "equal to" this one.pro.gravit.launcher.core.hasher.HashedDirpro.gravit.launcher.core.hasher.HashedDirgetName()pro.gravit.launcher.base.profiles.ClientProfilegetTag()getUuid()final inthashCode()Returns a hash code value for this object.pro.gravit.launcher.base.profiles.ClientProfileprofile()Returns the value of theprofilerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HttpProfile
public HttpProfile(pro.gravit.launcher.base.profiles.ClientProfile profile, pro.gravit.launcher.core.hasher.HashedDir clientDir, pro.gravit.launcher.core.hasher.HashedDir assetDir) Creates an instance of aHttpProfilerecord class.- Parameters:
profile- the value for theprofilerecord componentclientDir- the value for theclientDirrecord componentassetDir- the value for theassetDirrecord component
-
-
Method Details
-
getTag
- Specified by:
getTagin interfaceProfilesProvider.CompletedProfile
-
getProfile
public pro.gravit.launcher.base.profiles.ClientProfile getProfile()- Specified by:
getProfilein interfaceProfilesProvider.CompletedProfile
-
getClientDir
public pro.gravit.launcher.core.hasher.HashedDir getClientDir()- Specified by:
getClientDirin interfaceProfilesProvider.CompletedProfile
-
getAssetDir
public pro.gravit.launcher.core.hasher.HashedDir getAssetDir()- Specified by:
getAssetDirin interfaceProfilesProvider.CompletedProfile
-
getUuid
- Specified by:
getUuidin interfaceProfilesProvider.UncompletedProfile
-
getName
- Specified by:
getNamein interfaceProfilesProvider.UncompletedProfile
-
getDescription
- Specified by:
getDescriptionin interfaceProfilesProvider.UncompletedProfile
-
getDefaultTag
- Specified by:
getDefaultTagin interfaceProfilesProvider.UncompletedProfile
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
profile
public pro.gravit.launcher.base.profiles.ClientProfile profile()Returns the value of theprofilerecord component.- Returns:
- the value of the
profilerecord component
-
clientDir
public pro.gravit.launcher.core.hasher.HashedDir clientDir()Returns the value of theclientDirrecord component.- Returns:
- the value of the
clientDirrecord component
-
assetDir
public pro.gravit.launcher.core.hasher.HashedDir assetDir()Returns the value of theassetDirrecord component.- Returns:
- the value of the
assetDirrecord component
-