Package com.castlabs.sdk.downloader.network

# Class RequestModifierFilter

java.lang.Object
com.castlabs.sdk.downloader.network.RequestModifierFilter

public final class RequestModifierFilter extends Object
Filter used to restrict when a `RequestModifier` is executed.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static final class`
  `RequestModifierFilter.Builder`
  Builder for `RequestModifierFilter` instances.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static RequestModifierFilter.Builder`
  `builder()`
  Creates a new builder instance.
  `static RequestModifierFilter`
  `matchAll()`
  Creates a filter that matches every request.
  `boolean`
  `matches(Request request)`
  Checks whether the given request matches this filter.

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### matches

    public boolean matches(@NonNull Request request)
    Checks whether the given request matches this filter.
    Parameters:
      `request` - Request under evaluation
    Returns:
      `true` when the filter conditions are satisfied

  - ### matchAll

    @NonNull public static RequestModifierFilter matchAll()
    Creates a filter that matches every request.
    Returns:
      Filter instance with no restrictions

  - ### builder

    @NonNull public static RequestModifierFilter.Builder builder()
    Creates a new builder instance.
    Returns:
      Builder for a filter configuration