Class CalendarCache

java.lang.Object
com.ibm.icu.impl.CalendarCache

public class CalendarCache extends Object
  • Field Details

    • primes

      private static final int[] primes
    • pIndex

      private int pIndex
    • size

      private int size
    • arraySize

      private int arraySize
    • threshold

      private int threshold
    • keys

      private long[] keys
    • values

      private long[] values
    • EMPTY

      public static long EMPTY
  • Constructor Details

    • CalendarCache

      public CalendarCache()
  • Method Details

    • makeArrays

      private void makeArrays(int newSize)
    • get

      public long get(long key)
    • put

      public void put(long key, long value)
    • findIndex

      private final int findIndex(long key)
    • rehash

      private void rehash()
    • hash

      private final int hash(long key)
      Produce a uniformly-distributed hash value from an integer key. This is essentially a linear congruential random number generator that uses the key as its seed value.
    • hash2

      private final int hash2(long key)