org.silverpeas.util.memory
Enum MemoryUnit

java.lang.Object
  extended by java.lang.Enum<MemoryUnit>
      extended by org.silverpeas.util.memory.MemoryUnit
All Implemented Interfaces:
Serializable, Comparable<MemoryUnit>

public enum MemoryUnit
extends Enum<MemoryUnit>

User: Yohann Chastagnier Date: 15/11/13


Enum Constant Summary
B
           
GB
           
KB
           
MB
           
TB
           
 
Method Summary
protected  String getBundleDefault()
           
protected  String getBundleKey()
           
 String getLabel()
           
 BigDecimal getLimit()
           
 int getPower()
           
static MemoryUnit valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MemoryUnit[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

B

public static final MemoryUnit B

KB

public static final MemoryUnit KB

MB

public static final MemoryUnit MB

GB

public static final MemoryUnit GB

TB

public static final MemoryUnit TB
Method Detail

values

public static MemoryUnit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (MemoryUnit c : MemoryUnit.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MemoryUnit valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getBundleKey

protected String getBundleKey()

getBundleDefault

protected String getBundleDefault()

getLabel

public String getLabel()

getLimit

public BigDecimal getLimit()

getPower

public int getPower()


Copyright © 2016 Silverpeas. All Rights Reserved.