Package org.opennms.netmgt.flows.api
Class BytesInOut
- java.lang.Object
-
- org.opennms.netmgt.flows.api.BytesInOut
-
- All Implemented Interfaces:
Comparable<BytesInOut>
public class BytesInOut extends Object implements Comparable<BytesInOut>
Helper class for working with bytes in/out.
-
-
Constructor Summary
Constructors Constructor Description BytesInOut()
BytesInOut(long bytesIn, long bytesOut)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(BytesInOut other)
boolean
equals(Object o)
long
getBytesIn()
long
getBytesOut()
BytesInOut
minus(BytesInOut other)
static <T> BytesInOut
sum(com.google.common.collect.ImmutableSet<Map.Entry<Directional<T>,Double>> entrySet)
static <T> BytesInOut
sum(List<TrafficSummary<T>> summaries)
static BytesInOut
sum(BytesInOut a, BytesInOut b)
String
toString()
-
-
-
Method Detail
-
sum
public static BytesInOut sum(BytesInOut a, BytesInOut b)
-
sum
public static <T> BytesInOut sum(List<TrafficSummary<T>> summaries)
-
minus
public BytesInOut minus(BytesInOut other)
-
sum
public static <T> BytesInOut sum(com.google.common.collect.ImmutableSet<Map.Entry<Directional<T>,Double>> entrySet)
-
getBytesIn
public long getBytesIn()
-
getBytesOut
public long getBytesOut()
-
compareTo
public int compareTo(BytesInOut other)
- Specified by:
compareTo
in interfaceComparable<BytesInOut>
-
-