public final class Bandwidth extends Object implements RichComparable<Bandwidth>
| Modifier and Type | Method and Description |
|---|---|
Bandwidth |
add(Bandwidth value)
Returns a Bandwidth whose value is (this + value).
|
double |
bps()
Returns bandwidth in bps.
|
static Bandwidth |
bps(double bps)
Creates a new instance with given bandwidth in bps.
|
int |
compareTo(Bandwidth other) |
boolean |
equals(Object obj) |
static Bandwidth |
gbps(double gbps)
Creates a new instance with given bandwidth in Gbps.
|
int |
hashCode() |
static Bandwidth |
kbps(double kbps)
Creates a new instance with given bandwidth in Kbps.
|
static Bandwidth |
mbps(double mbps)
Creates a new instance with given bandwidth in Mbps.
|
Bandwidth |
subtract(Bandwidth value)
Returns a Bandwidth whose value is (this - value).
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitisGreaterThan, isLessThanpublic static Bandwidth bps(double bps)
bps - bandwidth value to be assignedBandwidth instance with given bandwidthpublic static Bandwidth kbps(double kbps)
kbps - bandwidth value to be assignedBandwidth instance with given bandwidthpublic static Bandwidth mbps(double mbps)
mbps - bandwidth value to be assignedBandwidth instance with given bandwidthpublic static Bandwidth gbps(double gbps)
gbps - bandwidth value to be assignedBandwidth instance with given bandwidthpublic double bps()
public Bandwidth add(Bandwidth value)
value - value to be added to this Frequencypublic Bandwidth subtract(Bandwidth value)
value - value to be added to this Frequencypublic int compareTo(Bandwidth other)
compareTo in interface Comparable<Bandwidth>Copyright © 2015. All rights reserved.