net.csdn.common.unit
Class SizeValue
java.lang.Object
net.csdn.common.unit.SizeValue
- All Implemented Interfaces:
- Serializable
public class SizeValue
- extends Object
- implements Serializable
- See Also:
- Serialized Form
SizeValue
public SizeValue(long singles)
SizeValue
public SizeValue(long size,
SizeUnit sizeUnit)
singles
public long singles()
getSingles
public long getSingles()
kilo
public long kilo()
getKilo
public long getKilo()
mega
public long mega()
getMega
public long getMega()
giga
public long giga()
getGiga
public long getGiga()
kiloFrac
public double kiloFrac()
getKiloFrac
public double getKiloFrac()
megaFrac
public double megaFrac()
getMegaFrac
public double getMegaFrac()
gigaFrac
public double gigaFrac()
getGigaFrac
public double getGigaFrac()
toString
public String toString()
- Overrides:
toString in class Object
parseSizeValue
public static SizeValue parseSizeValue(String sValue)
throws ParseException
- Throws:
ParseException
parseSizeValue
public static SizeValue parseSizeValue(String sValue,
SizeValue 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.