Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public class ByteCount extends Object implements Serializable, Comparable<ByteCount>
ByteCount consists of a long quantity and an optional unit.| Modifier and Type | Class and Description |
|---|---|
static class |
ByteCount.Unit |
| Constructor and Description |
|---|
ByteCount(long byteCount) |
ByteCount(long quantity,
ByteCount.Unit unit) |
ByteCount(String value) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ByteCount o) |
boolean |
equals(Object O)
Two BitRates are equal when they have the same quantity and the same unit.
|
long |
getByteCount() |
long |
getQuantity() |
ByteCount.Unit |
getUnit() |
int |
hashCode() |
String |
toString() |
static ByteCount |
valueOf(String value) |
public ByteCount(long byteCount)
public ByteCount(long quantity,
ByteCount.Unit unit)
unit - if null, defaults to bits per second.public ByteCount(String value)
public boolean equals(Object O)
equals in class ObjectcompareTo(com.aoindustries.io.ByteCount)public int compareTo(ByteCount o)
compareTo in interface Comparable<ByteCount>public long getQuantity()
public ByteCount.Unit getUnit()
public long getByteCount()
Copyright © 2000–2016 AO Industries, Inc.. All rights reserved.