Class AbstractSupplier<T,​B extends 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 java.lang.Object
    implements IOSupplier<T>
    Abstracts supplying an instance of T. Use to implement the builder pattern.
    Since:
    2.12.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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
    • 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.