Package oshi.hardware
Class CentralProcessor.ProcessorCache
java.lang.Object
oshi.hardware.CentralProcessor.ProcessorCache
- Enclosing interface:
- CentralProcessor
A class representing CPU Cache Memory.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumThe type of cache.
- 
Constructor SummaryConstructorsConstructorDescriptionProcessorCache(byte level, byte associativity, short lineSize, int cacheSize, CentralProcessor.ProcessorCache.Type type) ProcessorCache(int level, int associativity, int lineSize, long cacheSize, CentralProcessor.ProcessorCache.Type type) 
- 
Method Summary
- 
Constructor Details- 
ProcessorCachepublic ProcessorCache(byte level, byte associativity, short lineSize, int cacheSize, CentralProcessor.ProcessorCache.Type type) 
- 
ProcessorCachepublic ProcessorCache(int level, int associativity, int lineSize, long cacheSize, CentralProcessor.ProcessorCache.Type type) 
 
- 
- 
Method Details- 
getLevelpublic byte getLevel()The cache level. This member can be 1 (L1), 2 (L2), 3 (L3), or 4 (L4).- Returns:
- the level
 
- 
getAssociativitypublic byte getAssociativity()The cache associativity. If this member is0xFF, the cache is fully associative.- Returns:
- the associativity
 
- 
getLineSizepublic short getLineSize()The cache line size, in bytes.- Returns:
- the line size
 
- 
getCacheSizepublic int getCacheSize()The cache size, in bytes.- Returns:
- the cache size
 
- 
getTypeThe cache type.- Returns:
- the type
 
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
 
-