Package com.ibm.icu.impl
Class CalendarCache
java.lang.Object
com.ibm.icu.impl.CalendarCache
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate final int
findIndex
(long key) long
get
(long key) private final int
hash
(long key) Produce a uniformly-distributed hash value from an integer key.private final int
hash2
(long key) private void
makeArrays
(int newSize) void
put
(long key, long value) private void
rehash()
-
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)
-