Interface Constraint<T>

All Superinterfaces:
ParameterConfigurator
All Known Implementing Classes:
LocaleTransposition, RegexConstraint

public interface Constraint<T> extends ParameterConfigurator
Used to verify or restrict values before they are converted via the Converter API.
Author:
Lincoln Baxter, III
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isSatisfiedBy(Rewrite event, EvaluationContext context, T value)
    Return true if this Constraint is satisfied by the given value; otherwise, return false.
  • Method Details

    • isSatisfiedBy

      boolean isSatisfiedBy(Rewrite event, EvaluationContext context, T value)
      Return true if this Constraint is satisfied by the given value; otherwise, return false.