public static class Measure.Factory
extends java.lang.Object
setEnableCache
to enable the cache, this will safe memory but will also slow down jFO.| Modifier and Type | Method and Description |
|---|---|
static Measure |
create(Measure.Unit unit,
double value)
Creates a new measure.
|
static Measure |
create(java.lang.String rep)
Creates a new measure.
|
static boolean |
isShareValues()
Checks whether measures are shared.
|
static Measure |
nullValue() |
static Measure |
nullValue(Measure.Unit preferredUnit) |
static void |
setShareValues(boolean b)
Enables or disables the sharing for measures.
|
public static Measure create(java.lang.String rep)
rep - String representation of measure.public static Measure create(Measure.Unit unit, double value)
unit - Unit of measure.value - Value of measure.public static void setShareValues(boolean b)
b - true to enable cache.public static boolean isShareValues()
public static Measure nullValue()
public static Measure nullValue(Measure.Unit preferredUnit)
© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.