Interface Reservoir

    • Method Detail

      • size

        int size()
        Returns the number of values recorded.
        Returns:
        the number of values recorded
      • update

        void update​(long value)
        Adds a new recorded value to the reservoir.
        Parameters:
        value - a new recorded value
      • getSnapshot

        Snapshot getSnapshot()
        Returns a snapshot of the reservoir's values.
        Returns:
        a snapshot of the reservoir's values