Class WildcardFileFilter.Builder

All Implemented Interfaces:
IOSupplier<WildcardFileFilter>
Enclosing class:
WildcardFileFilter

public static class WildcardFileFilter.Builder extends AbstractSupplier<WildcardFileFilter,WildcardFileFilter.Builder>
Builds a new WildcardFileFilter instance.
Since:
2.12.0
  • Field Details

    • wildcards

      private String[] wildcards
      The wildcards that will be used to match file names.
    • ioCase

      private IOCase ioCase
      Whether the comparison is case-sensitive.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • get

      public WildcardFileFilter get()
      Description copied from interface: IOSupplier
      Gets a result.
      Returns:
      a result
    • setIoCase

      public WildcardFileFilter.Builder setIoCase(IOCase ioCase)
      Sets how to handle case sensitivity, null means case-sensitive.
      Parameters:
      ioCase - how to handle case sensitivity, null means case-sensitive.
      Returns:
      this
    • setWildcards

      public WildcardFileFilter.Builder setWildcards(List<String> wildcards)
      Sets the list of wildcards to match, not null.
      Parameters:
      wildcards - the list of wildcards to match, not null.
      Returns:
      this
    • setWildcards

      public WildcardFileFilter.Builder setWildcards(String... wildcards)
      Sets the wildcards to match, not null.
      Parameters:
      wildcards - the wildcards to match, not null.
      Returns:
      this