Package de.oliver.fancynpcs.api.utils
Record Class SkinFetcher.SkinCacheData
java.lang.Object
java.lang.Record
de.oliver.fancynpcs.api.utils.SkinFetcher.SkinCacheData
- Record Components:
skinData- The skin data.lastUpdated- The timestamp when the skin data was last updated.timeToLive- The time to live of the skin data in milliseconds.
- Enclosing class:
SkinFetcher
@Deprecated
@Internal
public static record SkinFetcher.SkinCacheData(@NotNull SkinFetcher.SkinData skinData, long lastUpdated, long timeToLive)
extends Record
Deprecated.
Represents the cached skin data. For internal use only.
-
Constructor Summary
ConstructorsConstructorDescriptionSkinCacheData(@NotNull SkinFetcher.SkinData skinData, long lastUpdated, long timeToLive) Deprecated.Creates an instance of aSkinCacheDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanDeprecated.Indicates whether some other object is "equal to" this one.final inthashCode()Deprecated.Returns a hash code value for this object.booleanDeprecated.longDeprecated.Returns the value of thelastUpdatedrecord component.@NotNull SkinFetcher.SkinDataskinData()Deprecated.Returns the value of theskinDatarecord component.longDeprecated.Returns the value of thetimeToLiverecord component.final StringtoString()Deprecated.Returns a string representation of this record class.
-
Constructor Details
-
SkinCacheData
public SkinCacheData(@NotNull @NotNull SkinFetcher.SkinData skinData, long lastUpdated, long timeToLive) Deprecated.Creates an instance of aSkinCacheDatarecord class.- Parameters:
skinData- the value for theskinDatarecord componentlastUpdated- the value for thelastUpdatedrecord componenttimeToLive- the value for thetimeToLiverecord component
-
-
Method Details
-
isExpired
public boolean isExpired()Deprecated. -
toString
Deprecated.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()Deprecated.Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Deprecated.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 '=='. -
skinData
Deprecated.Returns the value of theskinDatarecord component.- Returns:
- the value of the
skinDatarecord component
-
lastUpdated
public long lastUpdated()Deprecated.Returns the value of thelastUpdatedrecord component.- Returns:
- the value of the
lastUpdatedrecord component
-
timeToLive
public long timeToLive()Deprecated.Returns the value of thetimeToLiverecord component.- Returns:
- the value of the
timeToLiverecord component
-