public void validate(Object obj){
  Class clazz=obj.getClass();
  Validator validator=_inputTypeMap.get(clazz);
  if (validator == null) {
    validator=new Validator(clazz);
    _inputTypeMap.putIfAbsent(clazz,validator);
  }
  validator.validate(obj);
}

public void validate ( Object obj ) { Class clazz = obj . getClass ( ) ; Validator validator = _inputTypeMap . get ( clazz ) ; if ( validator == null ) { validator = new Validator ( clazz ) ; _inputTypeMap . putIfAbsent ( clazz , validator ) ; } validator . validate ( obj ) ; }
validates a given input object
