Package Torello.Java.Additional
Class VarListBuilder<CONTENTS>
- java.lang.Object
-
- Torello.Java.Additional.VarListBuilder<CONTENTS>
-
- Type Parameters:
CONTENTS
- This is the 'type' for the original input-contents. In the case of classFileNode
andFileNode.RetTypeChoice
, this Type Parameter will always beFileNode
, 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 theFileNode
class'RetTypeChoice'
.
Java HTML Library Helper for Torello.Java.FileNode
Currently, the only application for theVarList
User-Specified Variable Return Type Interface is for theFileNode
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 theVarList
interface.
Hi-Lited Source-Code:- View Here: Torello/Java/Additional/VarListBuilder.java
- Open New Browser-Tab: Torello/Java/Additional/VarListBuilder.java
-
-
Field Summary
Fields Modifier and Type Field VarList<CONTENTS[],CONTENTS>
ARRAY
VarList<ArrayList<CONTENTS>,
CONTENTS>ARRAYLIST
VarList<HashSet<CONTENTS>,
CONTENTS>HASHSET
VarList<Iterator<CONTENTS>,
CONTENTS>ITERATOR
VarList<LinkedList<CONTENTS>,
CONTENTS>LINKEDLIST
VarList<Stack<CONTENTS>,CONTENTS>
STACK
VarList<Stream<CONTENTS>,CONTENTS>
STREAM
VarList<Stream.Builder<CONTENTS>,
CONTENTS>STREAM_BUILDER
VarList<Vector<CONTENTS>,CONTENTS>
VECTOR
-
Constructor Summary
Constructors Constructor VarListBuilder(Class<CONTENTS> classOfListType)
-
-
-
Field Detail
-
VECTOR
public final VarList<java.util.Vector<CONTENTS>,CONTENTS> VECTOR
ThisVarList
instance has a'retrieve()'
method that will return aVector
.- 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
ThisVarList
instance has a'retrieve()'
method that will return anArrayList
.- 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
ThisVarList
instance has a'retrieve()'
method that will return anIterator
.- Code:
- Exact Field Declaration Expression:
public final VarList<Iterator<CONTENTS>, CONTENTS> ITERATOR = new ITERATOR_CLASS(null);
-
ARRAY
public final VarList<CONTENTS[],CONTENTS> ARRAY
ThisVarList
instance has a'retrieve()'
method that will return anarray
.- Code:
- Exact Field Declaration Expression:
public final VarList<CONTENTS[], CONTENTS> ARRAY;
-
STREAM
public final VarList<java.util.stream.Stream<CONTENTS>,CONTENTS> STREAM
ThisVarList
instance has a'retrieve()'
method that will return aStream
.- 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
ThisVarList
instance has a'retrieve()'
method that will return aStream.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
ThisVarList
instance has a'retrieve()'
method that will return aLinkedList
.- 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
ThisVarList
instance has a'retrieve()'
method that will return aHashSet
.- Code:
- Exact Field Declaration Expression:
public final VarList<HashSet<CONTENTS>, CONTENTS> HASHSET = new HASHSET_CLASS(null, false);
-
-
Constructor Detail
-
VarListBuilder
public VarListBuilder(java.lang.Class<CONTENTS> classOfListType)
Builds all 8 of theVarList's
provided by this builder class.
-
-