Package oshi.hardware

Class CentralProcessor.ProcessorCache

  • Enclosing interface:
    CentralProcessor

    @Immutable
    public static class CentralProcessor.ProcessorCache
    extends java.lang.Object
    A class representing CPU Cache Memory.
    • Field Detail

      • level

        private final byte level
      • associativity

        private final byte associativity
      • lineSize

        private final short lineSize
      • cacheSize

        private final int cacheSize
    • Method Detail

      • getLevel

        public byte getLevel()
        The cache level. This member can be 1 (L1), 2 (L2), 3 (L3), or 4 (L4).
        Returns:
        the level
      • getAssociativity

        public byte getAssociativity()
        The cache associativity. If this member is 0xFF, the cache is fully associative.
        Returns:
        the associativity
      • getLineSize

        public short getLineSize()
        The cache line size, in bytes.
        Returns:
        the line size
      • getCacheSize

        public int getCacheSize()
        The cache size, in bytes.
        Returns:
        the cache size
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object