Top Fields Constructors Methods
com.ibm.icu.impl

public Class CalendarCache

extends Object
Class Inheritance

ICU Status
Internal ICU component.

Field Summary

Modifier and TypeField and Description
private int
public static long
private long[]
private int
private static final int[]
private int
private int
private long[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private final int
findIndex(long key)

public synchronized 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)

public synchronized void
put(long key, long value)

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

arraySizeback to summary
private int arraySize
EMPTYback to summary
public static long EMPTY
ICU Status
Internal ICU component.
keysback to summary
private long[] keys
pIndexback to summary
private int pIndex
primesback to summary
private static final int[] primes
sizeback to summary
private int size
thresholdback to summary
private int threshold
valuesback to summary
private long[] values

Constructor Detail

CalendarCacheback to summary
public CalendarCache()
ICU Status
Internal ICU component.

Method Detail

findIndexback to summary
private final int findIndex(long key)
getback to summary
public synchronized long get(long key)
ICU Status
Internal ICU component.
hashback to summary
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.

hash2back to summary
private final int hash2(long key)
makeArraysback to summary
private void makeArrays(int newSize)
putback to summary
public synchronized void put(long key, long value)
ICU Status
Internal ICU component.
rehashback to summary
private void rehash()