Enum ECSSMathOperator

java.lang.Object
java.lang.Enum<ECSSMathOperator>
com.helger.css.decl.ECSSMathOperator
All Implemented Interfaces:
com.helger.commons.name.IHasName, ICSSExpressionMathMember, ICSSVersionAware, ICSSWriteable, Serializable, Comparable<ECSSMathOperator>, java.lang.constant.Constable

public enum ECSSMathOperator extends Enum<ECSSMathOperator> implements ICSSExpressionMathMember, com.helger.commons.name.IHasName
Represents the different math operators available.
Author:
Philip Helger
  • Enum Constant Details

  • Method Details

    • values

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

      public static ECSSMathOperator 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
    • getName

      @Nonnull @Nonempty public String getName()
      Specified by:
      getName in interface com.helger.commons.name.IHasName
    • getMinimumCSSVersion

      @Nonnull public ECSSVersion getMinimumCSSVersion()
      Specified by:
      getMinimumCSSVersion in interface ICSSVersionAware
      Returns:
      The minimum CSS version that is required to read or write this artifact. May not be null.
    • getAsCSSString

      @Nonnull @Nonempty public String getAsCSSString(@Nonnull ICSSWriterSettings aSettings, @Nonnegative int nIndentLevel)
      Description copied from interface: ICSSWriteable
      Get the contents of this object as a serialized CSS string for writing to an output.
      Specified by:
      getAsCSSString in interface ICSSWriteable
      Parameters:
      aSettings - The settings to be used to format the output. May not be null.
      nIndentLevel - The current indentation level
      Returns:
      The content of this object as CSS string. Never null.
    • getFromNameOrNull

      @Nullable public static ECSSMathOperator getFromNameOrNull(@Nullable String sName)