Package com.ibm.icu.impl
Class CalendarCache
- java.lang.Object
-
- com.ibm.icu.impl.CalendarCache
-
public class CalendarCache extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CalendarCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
findIndex(long key)
long
get(long key)
private int
hash(long key)
Produce a uniformly-distributed hash value from an integer key.private int
hash2(long key)
private void
makeArrays(int newSize)
void
put(long key, long value)
private void
rehash()
-
-
-
Method Detail
-
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)
-
-