Package org.opennms.netmgt.flows.api
Class BytesInOut
- java.lang.Object
-
- org.opennms.netmgt.flows.api.BytesInOut
-
- All Implemented Interfaces:
java.lang.Comparable<BytesInOut>
public class BytesInOut extends java.lang.Object implements java.lang.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(java.lang.Object o)
long
getBytesIn()
long
getBytesOut()
BytesInOut
minus(BytesInOut other)
static <T> BytesInOut
sum(com.google.common.collect.ImmutableSet<java.util.Map.Entry<Directional<T>,java.lang.Double>> entrySet)
static <T> BytesInOut
sum(java.util.List<TrafficSummary<T>> summaries)
static BytesInOut
sum(BytesInOut a, BytesInOut b)
java.lang.String
toString()
-
-
-
Method Detail
-
sum
public static BytesInOut sum(BytesInOut a, BytesInOut b)
-
sum
public static <T> BytesInOut sum(java.util.List<TrafficSummary<T>> summaries)
-
minus
public BytesInOut minus(BytesInOut other)
-
sum
public static <T> BytesInOut sum(com.google.common.collect.ImmutableSet<java.util.Map.Entry<Directional<T>,java.lang.Double>> entrySet)
-
getBytesIn
public long getBytesIn()
-
getBytesOut
public long getBytesOut()
-
compareTo
public int compareTo(BytesInOut other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<BytesInOut>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-