Interface ExtendedStatistics.Operation<T extends java.lang.Enum<T>>

  • Type Parameters:
    T - the generic type
    Enclosing interface:
    ExtendedStatistics

    public static interface ExtendedStatistics.Operation<T extends java.lang.Enum<T>>
    The Interface Operation.
    • Method Detail

      • type

        java.lang.Class<T> type()
        Type.
        Returns:
        the class
      • compound

        ExtendedStatistics.Result compound​(java.util.Set<T> results)
        Compound.
        Parameters:
        results - the results
        Returns:
        the result
      • ratioOf

        ExtendedStatistics.Statistic<java.lang.Double> ratioOf​(java.util.Set<T> numerator,
                                                               java.util.Set<T> denomiator)
        Ratio of.
        Parameters:
        numerator - the numerator
        denomiator - the denomiator
        Returns:
        the statistic
      • setAlwaysOn

        void setAlwaysOn​(boolean enable)
        Sets the always on.
        Parameters:
        enable - the new always on
      • isAlwaysOn

        boolean isAlwaysOn()
        Checks if is always on.
        Returns:
        true, if is always on
      • setWindow

        void setWindow​(long time,
                       java.util.concurrent.TimeUnit unit)
        Sets the window.
        Parameters:
        time - the time
        unit - the unit
      • setHistory

        void setHistory​(int samples,
                        long time,
                        java.util.concurrent.TimeUnit unit)
        Sets the history.
        Parameters:
        samples - the samples
        time - the time
        unit - the unit
      • getWindowSize

        long getWindowSize​(java.util.concurrent.TimeUnit unit)
        Gets the window size.
        Parameters:
        unit - the unit
        Returns:
        the window size
      • getHistorySampleSize

        int getHistorySampleSize()
        Gets the history sample size.
        Returns:
        the history sample size
      • getHistorySampleTime

        long getHistorySampleTime​(java.util.concurrent.TimeUnit unit)
        Gets the history sample time.
        Parameters:
        unit - the unit
        Returns:
        the history sample time