Package com.opencloud.slee.rest.common
Interface Verifier<T>
-
- Type Parameters:
T
- the type of the config property
- All Known Implementing Classes:
Verifier.Base64EncodedVerifier
,Verifier.NoOpVerifier
,Verifier.NotEmptyStringVerifier
,Verifier.NotNullVerifier
,Verifier.UrlVerifier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Verifier<T>
Defines a function that verifies config property values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Verifier.Base64EncodedVerifier
Verify that a String property value contains valid base64 charactersstatic class
Verifier.NoOpVerifier<T>
Always consider that a property value is valid.static class
Verifier.NotEmptyStringVerifier
Verify that a String property value is not an empty stringstatic class
Verifier.NotNullVerifier<T>
Verify that a property value may not be nullstatic class
Verifier.UrlVerifier
Verify that a String property value is a valid URL
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VerifyResult
verify(T value)
Verify a config property value.
-
-
-
Method Detail
-
verify
VerifyResult verify(T value)
Verify a config property value.- Parameters:
value
- the value to be verified- Returns:
- true if the value is valid
-
-