public interface Bandwidth extends RichComparable<Bandwidth>
Modifier and Type | Method and Description |
---|---|
default 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.
|
static Bandwidth |
bps(long bps)
Creates a new instance with given bandwidth in bps.
|
default int |
compareTo(Bandwidth other) |
static Bandwidth |
gbps(double gbps)
Creates a new instance with given bandwidth in Gbps.
|
static Bandwidth |
gBps(double gBps)
Creates a new instance with given bandwidth in GBps.
|
static Bandwidth |
gbps(long gbps)
Creates a new instance with given bandwidth in Gbps.
|
static Bandwidth |
gBps(long gBps)
Creates a new instance with given bandwidth in GBps.
|
static Bandwidth |
kbps(double kbps)
Creates a new instance with given bandwidth in Kbps.
|
static Bandwidth |
kBps(double kBps)
Creates a new instance with given bandwidth in KBps.
|
static Bandwidth |
kbps(long kbps)
Creates a new instance with given bandwidth in Kbps.
|
static Bandwidth |
kBps(long kBps)
Creates a new instance with given bandwidth in KBps.
|
static Bandwidth |
mbps(double mbps)
Creates a new instance with given bandwidth in Mbps.
|
static Bandwidth |
mBps(double mBps)
Creates a new instance with given bandwidth in MBps.
|
static Bandwidth |
mbps(long mbps)
Creates a new instance with given bandwidth in Mbps.
|
static Bandwidth |
mBps(long mBps)
Creates a new instance with given bandwidth in MBps.
|
static Bandwidth |
of(double v,
DataRateUnit unit)
Creates a new instance with given bandwidth.
|
static Bandwidth |
of(long v,
DataRateUnit unit)
Creates a new instance with given bandwidth.
|
default Bandwidth |
subtract(Bandwidth value)
Returns a Bandwidth whose value is (this - value).
|
isGreaterThan, isLessThan
static Bandwidth of(long v, DataRateUnit unit)
v
- bandwidth valueunit
- DataRateUnit
of v
Bandwidth
instance with given bandwidthstatic Bandwidth of(double v, DataRateUnit unit)
v
- bandwidth valueunit
- DataRateUnit
of v
Bandwidth
instance with given bandwidthstatic Bandwidth bps(long bps)
bps
- bandwidth value to be assignedBandwidth
instance with given bandwidthstatic Bandwidth bps(double bps)
bps
- bandwidth value to be assignedBandwidth
instance with given bandwidthstatic Bandwidth kbps(long kbps)
kbps
- bandwidth value to be assignedBandwidth
instance with given bandwidthstatic Bandwidth kbps(double kbps)
kbps
- bandwidth value to be assignedBandwidth
instance with given bandwidthstatic Bandwidth kBps(long kBps)
kBps
- bandwidth value to be assignedBandwidth
instance with given bandwidthstatic Bandwidth kBps(double kBps)
kBps
- bandwidth value to be assignedBandwidth
instance with given bandwidthstatic Bandwidth mbps(long mbps)
mbps
- bandwidth value to be assignedBandwidth
instance with given bandwidthstatic Bandwidth mbps(double mbps)
mbps
- bandwidth value to be assignedBandwidth
instance with given bandwidthstatic Bandwidth mBps(long mBps)
mBps
- bandwidth value to be assignedBandwidth
instance with given bandwidthstatic Bandwidth mBps(double mBps)
mBps
- bandwidth value to be assignedBandwidth
instance with given bandwidthstatic Bandwidth gbps(long gbps)
gbps
- bandwidth value to be assignedBandwidth
instance with given bandwidthstatic Bandwidth gbps(double gbps)
gbps
- bandwidth value to be assignedBandwidth
instance with given bandwidthstatic Bandwidth gBps(long gBps)
gBps
- bandwidth value to be assignedBandwidth
instance with given bandwidthstatic Bandwidth gBps(double gBps)
gBps
- bandwidth value to be assignedBandwidth
instance with given bandwidthdouble bps()
default Bandwidth add(Bandwidth value)
value
- value to be added to this Frequencydefault Bandwidth subtract(Bandwidth value)
value
- value to be added to this Frequency