Top Description Fields Constructors Methods
net.sf.ehcache.pool

public final Class Size

extends Object
Class Inheritance

Holder for the size calculated by the SizeOf engine
Author
Ludovic Orban

Field Summary

Modifier and TypeField and Description
private final long
private final boolean

Constructor Summary

AccessConstructor and Description
public
Size(long
the calculated size
calculated
,
boolean
true if the calculated size is exact, false if it's an estimate or known to be inaccurate in some way
exact
)

Constructor

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the calculated size
getCalculated
()

Get the calculated size

public boolean

Returns:

true if the calculated size is exact, false if it's an estimate or known to be inaccurate in some way
isExact
()

Check if the calculated size is exact

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

calculatedback to summary
private final long calculated
exactback to summary
private final boolean exact

Constructor Detail

Sizeback to summary
public Size(long calculated, boolean exact)

Constructor

Parameters
calculated:long

the calculated size

exact:boolean

true if the calculated size is exact, false if it's an estimate or known to be inaccurate in some way

Method Detail

getCalculatedback to summary
public long getCalculated()

Get the calculated size

Returns:long

the calculated size

isExactback to summary
public boolean isExact()

Check if the calculated size is exact

Returns:boolean

true if the calculated size is exact, false if it's an estimate or known to be inaccurate in some way