Record Class WorldTextureCacheStats
java.lang.Object
java.lang.Record
com.render.api.world.WorldTextureCacheStats
- Record Components:
capacity- maximum retained setup entriesentries- currently retained setup entrieshits- setup lookups satisfied by retained entriesmisses- setup lookups requiring a new setupevictions- entries dropped to maintain capacityclears- reload or shutdown clears
public record WorldTextureCacheStats(int capacity, int entries, long hits, long misses, long evictions, long clears)
extends Record
Texture-specific RenderType setup retention. Counts describe CPU cache work, not textures, GPU memory or frame time.
Hits, misses, evictions and clears accumulate for the client process; resource reload clears entries.
-
Constructor Summary
ConstructorsConstructorDescriptionWorldTextureCacheStats(int capacity, int entries, long hits, long misses, long evictions, long clears) Creates an instance of aWorldTextureCacheStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcapacity()Returns the value of thecapacityrecord component.longclears()Returns the value of theclearsrecord component.intentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theevictionsrecord component.final inthashCode()Returns a hash code value for this object.longhits()Returns the value of thehitsrecord component.longmisses()Returns the value of themissesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WorldTextureCacheStats
public WorldTextureCacheStats(int capacity, int entries, long hits, long misses, long evictions, long clears) Creates an instance of aWorldTextureCacheStatsrecord class.- Parameters:
capacity- the value for thecapacityrecord componententries- the value for theentriesrecord componenthits- the value for thehitsrecord componentmisses- the value for themissesrecord componentevictions- the value for theevictionsrecord componentclears- the value for theclearsrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
capacity
-
entries
-
hits
-
misses
-
evictions
-
clears
-