public class NetworkMetrics extends SystemMetrics<NetworkMetrics>
| Modifier and Type | Field and Description |
|---|---|
long |
mobileBytesRx |
long |
mobileBytesTx |
long |
wifiBytesRx |
long |
wifiBytesTx |
| Constructor and Description |
|---|
NetworkMetrics() |
| Modifier and Type | Method and Description |
|---|---|
NetworkMetrics |
diff(NetworkMetrics b,
NetworkMetrics output)
Subtract the object passed in from the current object.
|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
NetworkMetrics |
set(NetworkMetrics b)
Sets all fields in this to values from the SystemMetrics object passed in: a _deep_ copy that
shouldn't share any values with other metrics objects.
|
NetworkMetrics |
sum(NetworkMetrics b,
NetworkMetrics output)
Add values from the SystemMetrics object passed in and sets them on the output object,
if available.
|
java.lang.String |
toString() |
diff, sumpublic long mobileBytesTx
public long mobileBytesRx
public long wifiBytesTx
public long wifiBytesRx
public NetworkMetrics sum(@Nullable NetworkMetrics b, @Nullable NetworkMetrics output)
SystemMetricssum in class SystemMetrics<NetworkMetrics>public NetworkMetrics diff(@Nullable NetworkMetrics b, @Nullable NetworkMetrics output)
SystemMetricsdiff in class SystemMetrics<NetworkMetrics>public NetworkMetrics set(NetworkMetrics b)
SystemMetricsset in class SystemMetrics<NetworkMetrics>public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object