Class MovingAverageLong

java.lang.Object
com.prineside.tdi2.utils.MovingAverageLong
All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable

public final class MovingAverageLong extends Object implements com.esotericsoftware.kryo.KryoSerializable
  • Constructor Summary

    Constructors
    Constructor
    Description
    MovingAverageLong(int maxEntries)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    void
    push(long v)
     
    void
    read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
     
    void
    write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MovingAverageLong

      public MovingAverageLong(int maxEntries)
  • Method Details

    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
      Specified by:
      write in interface com.esotericsoftware.kryo.KryoSerializable
    • read

      public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
      Specified by:
      read in interface com.esotericsoftware.kryo.KryoSerializable
    • push

      public void push(long v)
    • getAverage

      public long getAverage()