public enum ReplacementType extends Enum<ReplacementType>
Represents a type of replacement for the matched text.
Enum Constant and Description |
---|
DrawBox
Draws a rectangle of specific color (Black by default) instead of redacted text.
|
ReplaceString
Replaces matched text with another string, e.g.
|
Modifier and Type | Method and Description |
---|---|
static ReplacementType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReplacementType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReplacementType ReplaceString
Replaces matched text with another string, e.g. exemption code.
public static final ReplacementType DrawBox
Draws a rectangle of specific color (Black by default) instead of redacted text.
public static ReplacementType[] values()
for (ReplacementType c : ReplacementType.values()) System.out.println(c);
public static ReplacementType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null