Class 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 Detail

      • BytesInOut

        public BytesInOut()
      • BytesInOut

        public BytesInOut​(long bytesIn,
                          long bytesOut)
    • Method Detail

      • 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 interface java.lang.Comparable<BytesInOut>
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object