Package mondrian.calc

Enum ResultStyle

    • Enum Constant Detail

      • ANY

        public static final ResultStyle ANY
        Indicates that caller will accept any applicable style.
      • MUTABLE_LIST

        public static final ResultStyle MUTABLE_LIST
        Indicates that the expression returns its result as a list which may safely be modified by the caller.
      • LIST

        public static final ResultStyle LIST
        Indicates that the expression returns its result as a list which must not be modified by the caller.
      • ITERABLE

        public static final ResultStyle ITERABLE
        Indicates that the expression returns its result as an Iterable which must not be modified by the caller.
      • VALUE

        public static final ResultStyle VALUE
        Indicates that the expression results its result as an immutable value. This is typical for expressions which return string, datetime and numeric values.
      • VALUE_NOT_NULL

        public static final ResultStyle VALUE_NOT_NULL
        Indicates that the expression results its result as an immutable value which will never be null. This is typical for expressions which return string, datetime and numeric values.
    • Method Detail

      • values

        public static ResultStyle[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ResultStyle c : ResultStyle.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ResultStyle valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null