Class CollectionBuilder.Default

  • Enclosing class:
    CollectionBuilder

    public static class CollectionBuilder.Default
    extends CollectionBuilder
    Default CollectionBuilder implementation, which uses ArrayList as the type of List to build, unless instructed otherwise.

    When sub-classing to use different underlying mutable List type, you need to sub-class following methods:

    If constructing builders that use different approaches (like, say, produce immutable Guava Lists), you may need to override more methods; or perhaps just extend basic CollectionBuilder.