Enum SuppressWithPlainTextCommentFilter.SuppressionType
- java.lang.Object
-
- java.lang.Enum<SuppressWithPlainTextCommentFilter.SuppressionType>
-
- com.puppycrawl.tools.checkstyle.filters.SuppressWithPlainTextCommentFilter.SuppressionType
-
- All Implemented Interfaces:
Serializable
,Comparable<SuppressWithPlainTextCommentFilter.SuppressionType>
- Enclosing class:
- SuppressWithPlainTextCommentFilter
private static enum SuppressWithPlainTextCommentFilter.SuppressionType extends Enum<SuppressWithPlainTextCommentFilter.SuppressionType>
Enum which represents the type of the suppression.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SuppressionType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SuppressWithPlainTextCommentFilter.SuppressionType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SuppressWithPlainTextCommentFilter.SuppressionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ON
public static final SuppressWithPlainTextCommentFilter.SuppressionType ON
On suppression type.
-
OFF
public static final SuppressWithPlainTextCommentFilter.SuppressionType OFF
Off suppression type.
-
-
Constructor Detail
-
SuppressionType
private SuppressionType()
-
-
Method Detail
-
values
public static SuppressWithPlainTextCommentFilter.SuppressionType[] 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 (SuppressWithPlainTextCommentFilter.SuppressionType c : SuppressWithPlainTextCommentFilter.SuppressionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SuppressWithPlainTextCommentFilter.SuppressionType 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
-
-