Class InplaceVerifier

java.lang.Object
org.approvej.verify.InplaceVerifier
All Implemented Interfaces:
Consumer<String>, Verifier

@NullMarked public class InplaceVerifier extends Object implements Verifier
A verifier that checks if the received value is equal to a value given in place.
  • Method Details

    • inplace

      public static InplaceVerifier inplace(String previouslyApproved)
      Creates a Verifier using the given previouslyApproved value.
      Parameters:
      previouslyApproved - the approved value
      Returns:
      a new InplaceVerifier for the given previouslyApproved value.
    • accept

      public void accept(String received)
      Specified by:
      accept in interface Consumer<String>