Class KeyValueTypeValidator

  • All Implemented Interfaces:

    public final class KeyValueTypeValidator
    extends ValueValidator
    This makes sure that the field type and the Key type match.
    • Method Detail

      • getInstance

        public static KeyValueTypeValidator getInstance()
        Get the instance.
        the Singleton instance of this validator
      • getRequiredValueType

        protected java.lang.Class<?> getRequiredValueType()
        Description copied from class: ValueValidator
        Used by apply to figure out whether to apply the validation or simply return.
        Specified by:
        getRequiredValueType in class ValueValidator
        the class the value should be in order to go ahead and perform validation