Package com.helger.css.decl
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>
public enum ECSSMathOperator extends Enum<ECSSMathOperator> implements ICSSExpressionMathMember, com.helger.commons.name.IHasName
Represents the different math operators available.- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAsCSSString(ICSSWriterSettings aSettings, int nIndentLevel)
Get the contents of this object as a serialized CSS string for writing to an output.static ECSSMathOperator
getFromNameOrNull(String sName)
ECSSVersion
getMinimumCSSVersion()
String
getName()
static ECSSMathOperator
valueOf(String name)
Returns the enum constant of this type with the specified name.static ECSSMathOperator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface com.helger.css.ICSSWriteable
getAsCSSString, getAsCSSString
-
-
-
-
Enum Constant Detail
-
PLUS
public static final ECSSMathOperator PLUS
-
MINUS
public static final ECSSMathOperator MINUS
-
MULTIPLY
public static final ECSSMathOperator MULTIPLY
-
DIVIDE
public static final ECSSMathOperator DIVIDE
-
-
Method Detail
-
values
public static ECSSMathOperator[] 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 (ECSSMathOperator c : ECSSMathOperator.values()) System.out.println(c);
- 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 nameNullPointerException
- if the argument is null
-
getName
@Nonnull @Nonempty public String getName()
- Specified by:
getName
in interfacecom.helger.commons.name.IHasName
-
getMinimumCSSVersion
@Nonnull public ECSSVersion getMinimumCSSVersion()
- Specified by:
getMinimumCSSVersion
in interfaceICSSVersionAware
- 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 interfaceICSSWriteable
- Parameters:
aSettings
- The settings to be used to format the output. May not benull
.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)
-
-