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 classVerifier.Base64EncodedVerifierVerify that a String property value contains valid base64 charactersstatic classVerifier.NoOpVerifier<T>Always consider that a property value is valid.static classVerifier.NotEmptyStringVerifierVerify that a String property value is not an empty stringstatic classVerifier.NotNullVerifier<T>Verify that a property value may not be nullstatic classVerifier.UrlVerifierVerify that a String property value is a valid URL
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VerifyResultverify(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
-
-