ehcache

net.sf.ehcache.pool
Class Size

java.lang.Object
  extended by net.sf.ehcache.pool.Size

public final class Size
extends Object

Holder for the size calculated by the SizeOf engine

Author:
Ludovic Orban

Constructor Summary
Size(long calculated, boolean exact)
          Constructor
 
Method Summary
 long getCalculated()
          Get the calculated size
 boolean isExact()
          Check if the calculated size is exact
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Size

public Size(long calculated,
            boolean exact)
Constructor

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

getCalculated

public long getCalculated()
Get the calculated size

Returns:
the calculated size

isExact

public boolean isExact()
Check if the calculated size is exact

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

ehcache

Copyright 2001-2014, Terracotta, Inc.