Package uk.gov.gchq.gaffer.commonutil
Class FieldUtil
- java.lang.Object
-
- uk.gov.gchq.gaffer.commonutil.FieldUtil
-
public final class FieldUtil extends Object
Utility methods for a field
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static uk.gov.gchq.koryphe.ValidationResult
validateRequiredFields(Pair<String,Object>... fields)
Checks the second value of aPair
is not nullstatic uk.gov.gchq.koryphe.ValidationResult
validateRequiredFields(uk.gov.gchq.koryphe.tuple.n.Tuple3<String,Object,Predicate>... fields)
Checks that the second value of aTuple3
satisfies the associatedPredicate
condition.
-
-
-
Method Detail
-
validateRequiredFields
@SafeVarargs public static uk.gov.gchq.koryphe.ValidationResult validateRequiredFields(Pair<String,Object>... fields)
Checks the second value of aPair
is not null- Parameters:
fields
- the fields to validate- Returns:
- the validation result
-
validateRequiredFields
@SafeVarargs public static uk.gov.gchq.koryphe.ValidationResult validateRequiredFields(uk.gov.gchq.koryphe.tuple.n.Tuple3<String,Object,Predicate>... fields)
Checks that the second value of aTuple3
satisfies the associatedPredicate
condition.- Parameters:
fields
- the fields to validate- Returns:
- the validation result
-
-