Class Approvers

java.lang.Object
org.approvej.approve.Approvers

@NullMarked public class Approvers extends Object
Collection of static methods to create Approver instances.
  • Method Details

    • value

      public static InplaceApprover value(String previouslyApproved)
      Creates a Approver using the given previouslyApproved value.
      Parameters:
      previouslyApproved - the approved value
      Returns:
      a new InplaceApprover for the given previouslyApproved value.
    • file

      public static FileApprover file(PathProvider pathProvider)
      Creates a new Approver that uses the given PathProvider to determine the paths of approved and received files.
      Parameters:
      pathProvider - the provider for the paths of the approved and received files
      Returns:
      a new FileApprover that uses the given PathProvider