Class VarListBuilder<CONTENTS>

  • Type Parameters:
    CONTENTS - This is the 'type' for the original input-contents. In the case of class FileNode and FileNode.RetTypeChoice, this Type Parameter will always be FileNode, the original data-structure.

    The class 'VarListBuilder' does not apply any transformations to the input-data, so the container that's requested when using 'VarListBuilder' (and is ultimately returned to the user) will have contents of the same type as the original input-type. (Specifically, this computed-value of this Type-Parameter!)

    public class VarListBuilder<CONTENTS>
    extends java.lang.Object
    Implementation of the FileNode class 'RetTypeChoice'.

    Java HTML Library Helper for Torello.Java.FileNode

    Currently, the only application for the VarList User-Specified Variable Return Type Interface is for the FileNode helper-class 'RetTypeChoice'.

    This class could theoretically be used wherever there are many container-variants for the same set of identical-data being returned to a user.

    This class will build a suite of implementations of the VarList interface.


    • Field Detail

      • VECTOR

        🡇    
        public final VarList<java.util.Vector<CONTENTS>,​CONTENTS> VECTOR
        This VarList instance has a 'retrieve()' method that will return a Vector.
        Code:
        Exact Field Declaration Expression:
         public final VarList<Vector<CONTENTS>, CONTENTS> VECTOR = new VECTOR_CLASS(null, false);
        
      • ARRAYLIST

        🡅  🡇    
        public final VarList<java.util.ArrayList<CONTENTS>,​CONTENTS> ARRAYLIST
        This VarList instance has a 'retrieve()' method that will return an ArrayList.
        Code:
        Exact Field Declaration Expression:
         public final VarList<ArrayList<CONTENTS>, CONTENTS> ARRAYLIST = new ARRAYLIST_CLASS(null, false);
        
      • ITERATOR

        🡅  🡇    
        public final VarList<java.util.Iterator<CONTENTS>,​CONTENTS> ITERATOR
        This VarList instance has a 'retrieve()' method that will return an Iterator.
        Code:
        Exact Field Declaration Expression:
         public final VarList<Iterator<CONTENTS>, CONTENTS> ITERATOR = new ITERATOR_CLASS(null);
        
      • ARRAY

        🡅  🡇    
        public final VarList<CONTENTS[],​CONTENTS> ARRAY
        This VarList instance has a 'retrieve()' method that will return an array.
        Code:
        Exact Field Declaration Expression:
         public final VarList<CONTENTS[], CONTENTS> ARRAY;
        
      • STREAM

        🡅  🡇    
        public final VarList<java.util.stream.Stream<CONTENTS>,​CONTENTS> STREAM
        This VarList instance has a 'retrieve()' method that will return a Stream.
        Code:
        Exact Field Declaration Expression:
         public final VarList<Stream<CONTENTS>, CONTENTS> STREAM = new STREAM_CLASS(null);
        
      • STREAM_BUILDER

        🡅  🡇    
        public final VarList<java.util.stream.Stream.Builder<CONTENTS>,​CONTENTS> STREAM_BUILDER
        This VarList instance has a 'retrieve()' method that will return a Stream.Builder.
        Code:
        Exact Field Declaration Expression:
         public final VarList<Stream.Builder<CONTENTS>, CONTENTS>  STREAM_BUILDER  = new STREAM_BUILDER_CLASS(null, false);
        
      • LINKEDLIST

        🡅  🡇    
        public final VarList<java.util.LinkedList<CONTENTS>,​CONTENTS> LINKEDLIST
        This VarList instance has a 'retrieve()' method that will return a LinkedList.
        Code:
        Exact Field Declaration Expression:
         public final VarList<LinkedList<CONTENTS>, CONTENTS> LINKEDLIST = new LINKEDLIST_CLASS(null, false);
        
      • HASHSET

        🡅  🡇    
        public final VarList<java.util.HashSet<CONTENTS>,​CONTENTS> HASHSET
        This VarList instance has a 'retrieve()' method that will return a HashSet.
        Code:
        Exact Field Declaration Expression:
         public final VarList<HashSet<CONTENTS>, CONTENTS> HASHSET = new HASHSET_CLASS(null, false);
        
      • STACK

        🡅  🡇    
        public final VarList<java.util.Stack<CONTENTS>,​CONTENTS> STACK
        This VarList instance has a 'retrieve()' method that will return a Stack.
        Code:
        Exact Field Declaration Expression:
         public final VarList<Stack<CONTENTS>, CONTENTS> STACK = new STACK_CLASS(null, false);
        
    • Constructor Detail

      • VarListBuilder

        🡅    
        public VarListBuilder​(java.lang.Class<CONTENTS> classOfListType)
        Builds all 8 of the VarList's provided by this builder class.