Class AlwaysValidSanitizer
- java.lang.Object
-
- biz.gabrys.maven.plugin.util.parameter.sanitizer.AlwaysValidSanitizer
-
- All Implemented Interfaces:
ValueSanitizer
public class AlwaysValidSanitizer extends Object implements ValueSanitizer
Value sanitizer which treats all values as valid.- Since:
- 1.3.0
-
-
Constructor Summary
Constructors Constructor Description AlwaysValidSanitizer()
Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValid(Object value)
Returnstrue
.Object
sanitize(Object value)
Throws anUnsupportedOperationException
.
-
-
-
Method Detail
-
isValid
public boolean isValid(Object value)
Returnstrue
.- Specified by:
isValid
in interfaceValueSanitizer
- Parameters:
value
- the parameter value (ignored).- Returns:
true
.- Since:
- 1.3.0
-
sanitize
public Object sanitize(Object value)
Throws anUnsupportedOperationException
.- Specified by:
sanitize
in interfaceValueSanitizer
- Parameters:
value
- the parameter invalid value (ignored).- Returns:
- nothing, because throws the
UnsupportedOperationException
. - Throws:
UnsupportedOperationException
- always.- Since:
- 1.3.0
-
-