Package org.bedework.calfacade.util
Class QuotaUtil
java.lang.Object
org.bedework.calfacade.util.QuotaUtil
- Author:
- douglm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcollectionSize(Collection<?> c) static intgetSizeChange(String fromVal, String toVal) Return the size change for the given objectstatic intgetSizeChange(SizedEntity fromVal, SizedEntity toVal) Return the size change for the given objectstatic intThis actually returns character size - not byte size.static intsize(SizedEntity val)
-
Constructor Details
-
QuotaUtil
public QuotaUtil()
-
-
Method Details
-
getSizeChange
Return the size change for the given object- Parameters:
fromVal- as it wastoVal- as it is- Returns:
- int chage
-
getSizeChange
Return the size change for the given object- Parameters:
fromVal- as it wastoVal- as it is- Returns:
- int chage
-
size
- Parameters:
val- sized entity- Returns:
- int size
-
size
This actually returns character size - not byte size. Getting byte size might slow things up.- Parameters:
val- string- Returns:
- int
-
collectionSize
- Parameters:
c- a collection- Returns:
- int size
-