org.apache.commons.io.build

## Class AbstractSupplier<T,B extends AbstractSupplier<T,B>>

- java.lang.Object
- - org.apache.commons.io.build.AbstractSupplier<T,B>

- Type Parameters:
    `T` - the type of instances to build.
    `B` - the type of builder subclass.
  All Implemented Interfaces:
    IOSupplier<T>
  Direct Known Subclasses:
    AbstractOrigin, AbstractOriginSupplier, WildcardFileFilter.Builder

      public abstract class AbstractSupplier<T,B extends AbstractSupplier<T,B>>
      extends Object
      implements IOSupplier<T>

  Abstracts supplying a typed instance of `T`. Use to implement the builder pattern.
  Since:
    2.12.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AbstractSupplier()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected B` | `asThis()` Returns this instance typed as the proper subclass type.

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

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

    - ### Methods inherited from interface org.apache.commons.io.function.IOSupplier

      `asSupplier, get`

- - ### Constructor Detail

    - #### AbstractSupplier

          public AbstractSupplier()

  - ### Method Detail

    - #### asThis

          protected B asThis()

      Returns this instance typed as the proper subclass type.
      Returns:
        this instance typed as the proper subclass type.

Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.