Package com.easypost.easyvcr
Class CensorElement
java.lang.Object
com.easypost.easyvcr.CensorElement
- Direct Known Subclasses:
RegexCensorElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanWhether the value must match exactly to trigger a censor.protected StringThe value of the element to censor. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
value
The value of the element to censor. -
caseSensitive
protected final boolean caseSensitiveWhether the value must match exactly to trigger a censor.
-
-
Constructor Details
-
CensorElement
Constructor.- Parameters:
name- The name of the element to censor.caseSensitive- Whether the name must match exactly to trigger a censor.
-
-
Method Details
-
matches
Return whether the element matches the name, accounting for case sensitivity.- Parameters:
key- The name to check.- Returns:
- True if the element matches the name.
-