Class FieldUtil


  • public final class FieldUtil
    extends Object
    Utility methods for a field
    • Method Detail

      • validateRequiredFields

        @SafeVarargs
        public static uk.gov.gchq.koryphe.ValidationResult validateRequiredFields​(Pair<String,​Object>... fields)
        Checks the second value of a Pair 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 a Tuple3 satisfies the associated Predicate condition.
        Parameters:
        fields - the fields to validate
        Returns:
        the validation result