Enum Class SubtotalFunction

java.lang.Object
java.lang.Enum<SubtotalFunction>
io.keikai.axyra.sheets.SubtotalFunction
All Implemented Interfaces:
Serializable, Comparable<SubtotalFunction>, Constable

public enum SubtotalFunction extends Enum<SubtotalFunction>
Aggregate function for Sheet.subtotal(int, int, int, io.keikai.axyra.sheets.SubtotalFunction, int...), by Excel SUBTOTAL code. The inserted formulas use codes 1 to 11, so rows hidden by hand still count; rows hidden by a filter do not.
  • Enum Constant Details

    • AVERAGE

      public static final SubtotalFunction AVERAGE
      SUBTOTAL 1, AVERAGE: mean of the numbers.
    • COUNT

      public static final SubtotalFunction COUNT
      SUBTOTAL 2, COUNT: number of numeric cells.
    • COUNTA

      public static final SubtotalFunction COUNTA
      SUBTOTAL 3, COUNTA: number of non-empty cells.
    • MAX

      public static final SubtotalFunction MAX
      SUBTOTAL 4, MAX: largest number.
    • MIN

      public static final SubtotalFunction MIN
      SUBTOTAL 5, MIN: smallest number.
    • PRODUCT

      public static final SubtotalFunction PRODUCT
      SUBTOTAL 6, PRODUCT: product of the numbers.
    • STDEV

      public static final SubtotalFunction STDEV
      SUBTOTAL 7, STDEV: sample standard deviation.
    • STDEVP

      public static final SubtotalFunction STDEVP
      SUBTOTAL 8, STDEVP: population standard deviation.
    • SUM

      public static final SubtotalFunction SUM
      SUBTOTAL 9, SUM: total of the numbers.
    • VAR

      public static final SubtotalFunction VAR
      SUBTOTAL 10, VAR: sample variance.
    • VARP

      public static final SubtotalFunction VARP
      SUBTOTAL 11, VARP: population variance.
  • Method Details

    • values

      public static SubtotalFunction[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SubtotalFunction valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null