uic.lang
Class FileSize

java.lang.Object
  extended by java.lang.Number
      extended by uic.lang.FileSize
All Implemented Interfaces:
Serializable, Comparable

public class FileSize
extends Number
implements Comparable

See Also:
Serialized Form

Constructor Summary
FileSize(long size)
           
FileSize(String size)
           
 
Method Summary
 byte byteValue()
          Returns the value of the specified number as a byte.
 int compareTo(Object other)
           
 double doubleValue()
          Returns the value of the specified number as a double.
 float floatValue()
          Returns the value of the specified number as a float.
 int intValue()
          Returns the value of the specified number as an int.
 long longValue()
          Returns the value of the specified number as a long.
 short shortValue()
           
 String toString()
           
static FileSize valueOf(long size)
           
static FileSize valueOf(String size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileSize

public FileSize(String size)

FileSize

public FileSize(long size)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

byteValue

public byte byteValue()
Returns the value of the specified number as a byte.

Overrides:
byteValue in class Number

doubleValue

public double doubleValue()
Returns the value of the specified number as a double.

Specified by:
doubleValue in class Number

floatValue

public float floatValue()
Returns the value of the specified number as a float.

Specified by:
floatValue in class Number

intValue

public int intValue()
Returns the value of the specified number as an int.

Specified by:
intValue in class Number

longValue

public long longValue()
Returns the value of the specified number as a long.

Specified by:
longValue in class Number

shortValue

public short shortValue()
Overrides:
shortValue in class Number

compareTo

public int compareTo(Object other)
Specified by:
compareTo in interface Comparable

valueOf

public static FileSize valueOf(String size)

valueOf

public static FileSize valueOf(long size)


Copyright © 2002-2004 Thomas Zander Available under the Free Apache licence