net.csdn.common.unit
Class ByteSizeValue
java.lang.Object
net.csdn.common.unit.ByteSizeValue
- All Implemented Interfaces:
- Serializable
public class ByteSizeValue
- extends Object
- implements Serializable
BlogInfo: william
Date: 11-9-1
Time: 下午4:12
- See Also:
- Serialized Form
ByteSizeValue
public ByteSizeValue(long bytes)
ByteSizeValue
public ByteSizeValue(long size,
ByteSizeUnit sizeUnit)
bytes
public long bytes()
getBytes
public long getBytes()
kb
public long kb()
getKb
public long getKb()
mb
public long mb()
getMb
public long getMb()
gb
public long gb()
getGb
public long getGb()
kbFrac
public double kbFrac()
getKbFrac
public double getKbFrac()
mbFrac
public double mbFrac()
getMbFrac
public double getMbFrac()
gbFrac
public double gbFrac()
getGbFrac
public double getGbFrac()
toString
public String toString()
- Overrides:
toString in class Object
parseBytesSizeValue
public static ByteSizeValue parseBytesSizeValue(String sValue)
throws ParseException
- Throws:
ParseException
parseBytesSizeValue
public static ByteSizeValue parseBytesSizeValue(String sValue,
ByteSizeValue defaultValue)
throws ParseException
- Throws:
ParseException
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2014. All Rights Reserved.