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 intcompareTo(BytesInOut other)booleanequals(java.lang.Object o)longgetBytesIn()longgetBytesOut()BytesInOutminus(BytesInOut other)static <T> BytesInOutsum(com.google.common.collect.ImmutableSet<java.util.Map.Entry<Directional<T>,java.lang.Double>> entrySet)static <T> BytesInOutsum(java.util.List<TrafficSummary<T>> summaries)static BytesInOutsum(BytesInOut a, BytesInOut b)java.lang.StringtoString()
-
-
-
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:
compareToin interfacejava.lang.Comparable<BytesInOut>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-