Class Filter.Builder

java.lang.Object
com.sanctionco.opconnect.model.Filter.Builder
Enclosing class:
Filter

public static class Filter.Builder extends Object
The builder class used to build a new Filter.
  • Method Details

    • equals

      public Filter equals(String value)
      Builds a new Filter with the 'eq' operator. Filters based on the property exactly matching the given value.
      Parameters:
      value - the value that the property should be equal to
      Returns:
      the new Filter
    • contains

      public Filter contains(String value)
      Builds a new Filter with the 'co' operator. Filters based on the property containing the given value.
      Parameters:
      value - the value that the property should contain
      Returns:
      the new Filter
    • startsWith

      public Filter startsWith(String value)
      Builds a new Filter with the 'sw' operator. Filters based on the property starting with the given value.
      Parameters:
      value - the value that the property should start with
      Returns:
      the new Filter
    • present

      public Filter present()
      Builds a new Filter with the 'pr' operator. Filters based on the property being present.
      Returns:
      the new Filter
    • greaterThan

      public Filter greaterThan(String value)
      Builds a new Filter with the 'gt' operator. Filters based on the property being alphanumerically greater than the given value.
      Parameters:
      value - the value that the property should be greater than
      Returns:
      the new Filter
    • greaterThanOrEqual

      public Filter greaterThanOrEqual(String value)
      Builds a new Filter with the 'ge' operator. Filters based on the property being alphanumerically greater than or equal to the given value.
      Parameters:
      value - the value that the property should be greater than or equal to
      Returns:
      the new Filter
    • lessThan

      public Filter lessThan(String value)
      Builds a new Filter with the 'lt' operator. Filters based on the property being alphanumerically less than the given value.
      Parameters:
      value - the value that the property should be less than
      Returns:
      the new Filter
    • lessThanOrEqual

      public Filter lessThanOrEqual(String value)
      Builds a new Filter with the 'le' operator. Filters based on the property being alphanumerically less than or equal to the given value.
      Parameters:
      value - the value that the property should be less than or equal to
      Returns:
      the new Filter