# Deprecated API

## Contents

- Classes
- Fields
- Methods
- Constructors

- Deprecated Classes
  Class
  Description
  org.apache.commons.validator.CreditCardValidator
  Use the new CreditCardValidator in the routines package. This class will be removed in a future release.
  org.apache.commons.validator.DateValidator
  Use the new DateValidator, CalendarValidator or TimeValidator in the routines package. This class will be removed in a future release.
  org.apache.commons.validator.EmailValidator
  Use the new EmailValidator in the routines package. This class will be removed in a future release.
  org.apache.commons.validator.ISBNValidator
  Use the new ISBNValidator in the routines package
  org.apache.commons.validator.UrlValidator
  Use the new UrlValidator in the routines package. This class will be removed in a future release.

- Deprecated Fields
  Field
  Description
  org.apache.commons.validator.Field.hMsgs
  Subclasses should use getMsgMap() instead.
  org.apache.commons.validator.Field.hVars
  Subclasses should use getVarMap() instead.
  org.apache.commons.validator.Form.hFields
  Subclasses should use getFieldMap() instead.
  org.apache.commons.validator.routines.CreditCardValidator.MASTERCARD_PRE_OCT2016
  for use until Oct 2016 only
  org.apache.commons.validator.routines.CreditCardValidator.MASTERCARD_VALIDATOR_PRE_OCT2016
  for use until Oct 2016 only
  org.apache.commons.validator.ValidatorResources.hActions
  Subclasses should use getActions() instead.
  org.apache.commons.validator.ValidatorResources.hConstants
  Subclasses should use getConstants() instead.
  org.apache.commons.validator.ValidatorResources.hFormSets
  Subclasses should use getFormSets() instead.

- Deprecated Methods
  Method
  Description
  org.apache.commons.validator.util.ValidatorUtils.copyFastHashMap(FastHashMap)
  This method is not part of Validator's public API. Validator will use it internally until FastHashMap references are removed. Use copyMap() instead.
  org.apache.commons.validator.ValidatorAction.setClassname(String)
  Use `ValidatorAction.setClassName(String)`.
  org.apache.commons.validator.ValidatorResult.getActionMap()
  Use getActions() to return the set of actions the isValid(name) and getResult(name) methods to determine the contents of ResultStatus.

- Deprecated Constructors
  Constructor
  Description
  org.apache.commons.validator.ValidatorResult.ResultStatus(ValidatorResult, boolean, Object)
  Use `ResultStatus(boolean, Object)` instead