Class MaxLengthValidator

java.lang.Object
games.stendhal.server.core.account.MaxLengthValidator
All Implemented Interfaces:
AccountParameterValidator

public class MaxLengthValidator extends Object implements AccountParameterValidator
validates that the given parameter is provided is short than a specified maximum length.
Author:
hendrik
  • Constructor Details

    • MaxLengthValidator

      public MaxLengthValidator(String parameterValue, int maxLength)
      creates a new MaxLengthValidator.
      Parameters:
      parameterValue - value to validate
      maxLength - maximum required length
  • Method Details