|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.fopps.model.Filesize
More convenient file size display
| Field Summary | |
static int |
BYTE
|
static int |
GBYTE
|
static int |
INVALID
|
static int |
KBYTE
|
static int |
MAXVALUE
|
static int |
MBYTE
|
static java.lang.String[] |
SIZE_UNITS
|
static int |
TBYTE
|
| Constructor Summary | |
Filesize(long pFileSizeinByte)
Constructor for Filesize. |
|
| Method Summary | |
java.lang.Object |
getDefault()
Returns the default value of the enumeration |
java.lang.Object[] |
getInstances()
Returns all possible instances of the enumeration |
double |
getSize()
Returns the size. |
long |
getSizeInBytes()
Returns the size in bytes. |
byte |
getUnit()
Returns the unit. |
int |
getValue()
Returns the unit. |
void |
setSize(long pSizeInBytes)
Sets the size. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int INVALID
public static final int BYTE
public static final int KBYTE
public static final int MBYTE
public static final int GBYTE
public static final int TBYTE
public static final int MAXVALUE
public static final java.lang.String[] SIZE_UNITS
| Constructor Detail |
public Filesize(long pFileSizeinByte)
| Method Detail |
public int getValue()
getValue in interface Enumpublic java.lang.Object getDefault()
getDefault in interface Enumpublic java.lang.Object[] getInstances()
Enum
getInstances in interface EnumEnum.getInstances()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public double getSize()
public byte getUnit()
public void setSize(long pSizeInBytes)
public long getSizeInBytes()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||