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.ValidationResultvalidateRequiredFields(Pair<String,Object>... fields)Checks the second value of aPairis not nullstatic uk.gov.gchq.koryphe.ValidationResultvalidateRequiredFields(uk.gov.gchq.koryphe.tuple.n.Tuple3<String,Object,Predicate>... fields)Checks that the second value of aTuple3satisfies the associatedPredicatecondition.
-
-
-
Method Detail
-
validateRequiredFields
@SafeVarargs public static uk.gov.gchq.koryphe.ValidationResult validateRequiredFields(Pair<String,Object>... fields)
Checks the second value of aPairis 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 aTuple3satisfies the associatedPredicatecondition.- Parameters:
fields- the fields to validate- Returns:
- the validation result
-
-