Package net.minecraft.data
Record Class HashCache.UpdateResult
java.lang.Object
java.lang.Record
net.minecraft.data.HashCache.UpdateResult
- Enclosing class:
- HashCache
public static record HashCache.UpdateResult(String providerId, HashCache.ProviderCache cache, int writes)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final HashCache.ProviderCacheThe field for thecacherecord component.private final StringThe field for theproviderIdrecord component.private final intThe field for thewritesrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionUpdateResult(String providerId, HashCache.ProviderCache cache, int writes) Creates an instance of aUpdateResultrecord class.
- 
Method SummaryModifier and TypeMethodDescriptioncache()Returns the value of thecacherecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theproviderIdrecord component.final StringtoString()Returns a string representation of this record class.intwrites()Returns the value of thewritesrecord component.
- 
Field Details- 
providerIdThe field for theproviderIdrecord component.
- 
cacheThe field for thecacherecord component.
- 
writesprivate final int writesThe field for thewritesrecord component.
 
- 
- 
Constructor Details- 
UpdateResultCreates an instance of aUpdateResultrecord class.- Parameters:
- providerId- the value for the- providerIdrecord component
- cache- the value for the- cacherecord component
- writes- the value for the- writesrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
providerIdReturns the value of theproviderIdrecord component.- Returns:
- the value of the providerIdrecord component
 
- 
cacheReturns the value of thecacherecord component.- Returns:
- the value of the cacherecord component
 
- 
writespublic int writes()Returns the value of thewritesrecord component.- Returns:
- the value of the writesrecord component
 
 
-