public abstract class AbstractSet extends PersistentObject
| Modifier and Type | Field and Description |
|---|---|
static int |
defaultCapacity |
static double |
defaultMaxLoadFactor |
static double |
defaultMinLoadFactor |
protected int |
distinct |
protected int |
highWaterMark |
protected int |
lowWaterMark |
protected double |
maxLoadFactor |
protected double |
minLoadFactor |
| Constructor and Description |
|---|
AbstractSet() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
chooseGrowCapacity(int size,
double minLoad,
double maxLoad) |
protected int |
chooseHighWaterMark(int capacity,
double maxLoad) |
protected int |
chooseLowWaterMark(int capacity,
double minLoad) |
protected int |
chooseMeanCapacity(int size,
double minLoad,
double maxLoad) |
protected int |
chooseShrinkCapacity(int size,
double minLoad,
double maxLoad) |
abstract void |
clear() |
void |
ensureCapacity(int minCapacity) |
protected static boolean |
equalsMindTheNull(Object a,
Object b) |
boolean |
isEmpty() |
protected int |
nextPrime(int desiredCapacity) |
protected void |
setUp(int initialCapacity,
double minLoadFactor,
double maxLoadFactor) |
int |
size() |
void |
trimToSize() |
cloneprotected int distinct
protected int lowWaterMark
protected int highWaterMark
protected double minLoadFactor
protected double maxLoadFactor
public static final int defaultCapacity
public static final double defaultMinLoadFactor
public static final double defaultMaxLoadFactor
protected int chooseGrowCapacity(int size,
double minLoad,
double maxLoad)
protected int chooseHighWaterMark(int capacity,
double maxLoad)
protected int chooseLowWaterMark(int capacity,
double minLoad)
protected int chooseMeanCapacity(int size,
double minLoad,
double maxLoad)
protected int chooseShrinkCapacity(int size,
double minLoad,
double maxLoad)
public abstract void clear()
public void ensureCapacity(int minCapacity)
public boolean isEmpty()
protected int nextPrime(int desiredCapacity)
protected void setUp(int initialCapacity,
double minLoadFactor,
double maxLoadFactor)
public int size()
public void trimToSize()