|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.util.memory.MemoryData
public class MemoryData
User: Yohann Chastagnier Date: 14/11/13
Constructor Summary | |
---|---|
MemoryData(BigDecimal byteSize)
Hidden constructor |
|
MemoryData(long byteSize)
Hidden constructor |
Method Summary | |
---|---|
static BigDecimal |
convertTo(BigDecimal value,
MemoryUnit from,
MemoryUnit to)
Converting a computer data storage value |
String |
getBestDisplayValue()
Gets the best display value |
String |
getBestDisplayValueOnly()
Gets the best display value |
MemoryUnit |
getBestUnit()
Gets the best unit (for display as example). |
BigDecimal |
getBestValue()
Gets the best unformatted value (for display as example). |
String |
getFormattedValue(MemoryUnit to)
Gets the desired value with its label |
String |
getFormattedValueOnly(MemoryUnit to)
Gets the desired value only |
BigDecimal |
getRoundedSizeConverted(MemoryUnit to)
Gets the size converted to desired unit. |
BigDecimal |
getSize()
Gets the size in bytes. |
Long |
getSizeAsLong()
Gets the size in bytes. |
BigDecimal |
getSizeConverted(MemoryUnit to)
Gets the size converted to desired unit. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemoryData(long byteSize)
byteSize
- public MemoryData(BigDecimal byteSize)
byteSize
- Method Detail |
---|
public static BigDecimal convertTo(BigDecimal value, MemoryUnit from, MemoryUnit to)
value
- from
- to
-
public BigDecimal getSize()
public Long getSizeAsLong()
public BigDecimal getRoundedSizeConverted(MemoryUnit to)
to
-
public BigDecimal getSizeConverted(MemoryUnit to)
to
-
public MemoryUnit getBestUnit()
public BigDecimal getBestValue()
public String getBestDisplayValueOnly()
public String getBestDisplayValue()
public String getFormattedValueOnly(MemoryUnit to)
public String getFormattedValue(MemoryUnit to)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |