Top Description Fields Constructors Methods
org.apache.poi.ss.formula

pack-priv final Class FormulaCellCacheEntrySet

extends Object
Class Inheritance

A custom implementation of java.util.HashSet in order to reduce memory consumption. Profiling tests (Oct 2008) have shown that each element FormulaCellCacheEntry takes around 32 bytes to store in a HashSet, but around 6 bytes to store here. For Spreadsheets with thousands of formula cells with multiple interdependencies, the savings can be very significant.

Field Summary

Modifier and TypeField and Description
private FormulaCellCacheEntry[]
private int
private static final FormulaCellCacheEntry[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
private static boolean
public boolean
public FormulaCellCacheEntry[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_arrback to summary
private FormulaCellCacheEntry[] _arr
_sizeback to summary
private int _size
EMPTY_ARRAYback to summary
private static final FormulaCellCacheEntry[] EMPTY_ARRAY

Constructor Detail

FormulaCellCacheEntrySetback to summary
public FormulaCellCacheEntrySet()

Method Detail

addback to summary
public void add(CellCacheEntry cce)
addInternalback to summary
private static boolean addInternal(CellCacheEntry[] arr, CellCacheEntry cce)
removeback to summary
public boolean remove(CellCacheEntry cce)
toArrayback to summary
public FormulaCellCacheEntry[] toArray()