|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Number
cct.tools.filebrowser.FileSize
public class FileSize
Title:
Description:
Handles file size as unsigned integer 64 it's a redesign of a UnsignedInteger64 class from the sshtoolsCopyright: Copyright (c) 2006
Company: ANU
| Field Summary | |
|---|---|
static java.math.BigInteger |
MAX_VALUE
|
static java.math.BigInteger |
MIN_VALUE
|
| Constructor Summary | |
|---|---|
FileSize(java.math.BigInteger input)
Creates a new FileSize object. |
|
FileSize(byte[] bval)
Creates a new FileSize object. |
|
FileSize(java.lang.String sval)
Creates a new FileSize object. |
|
| Method Summary | |
|---|---|
static FileSize |
add(FileSize x,
FileSize y)
|
static FileSize |
add(FileSize x,
int y)
|
java.math.BigInteger |
bigIntValue()
|
int |
compareTo(java.lang.Object val)
|
double |
doubleValue()
|
boolean |
equals(java.lang.Object o)
|
float |
floatValue()
|
int |
hashCode()
|
int |
intValue()
|
long |
longValue()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Number |
|---|
byteValue, shortValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.math.BigInteger MAX_VALUE
public static final java.math.BigInteger MIN_VALUE
| Constructor Detail |
|---|
public FileSize(java.lang.String sval)
throws java.lang.NumberFormatException
sval -
java.lang.NumberFormatException
public FileSize(byte[] bval)
throws java.lang.NumberFormatException
bval -
java.lang.NumberFormatExceptionpublic FileSize(java.math.BigInteger input)
input -
java.lang.NumberFormatException| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto -
public java.math.BigInteger bigIntValue()
public int intValue()
intValue in class java.lang.Numberpublic long longValue()
longValue in class java.lang.Numberpublic double doubleValue()
doubleValue in class java.lang.Numberpublic float floatValue()
floatValue in class java.lang.Numberpublic int compareTo(java.lang.Object val)
compareTo in interface java.lang.Comparableval -
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
public static FileSize add(FileSize x,
FileSize y)
x - y -
public static FileSize add(FileSize x,
int y)
x - y -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||