Package org.apache.juneau.svl
Class VarList
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Object>,Collection<Object>,List<Object>,RandomAccess
Simple list of variables that can consist of either variable classes or instances.
See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds the default variables to this list.final VarListAdds a list of variables to this list.Adds a list of variables to this list.Adds a list of variables to this list.copy()Makes a copy of this list.static VarListcreate()Returns an empty list of variables.static final VarListCreates a new list of variables.static VarListCreates a new list of variables.Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Constructor Details
-
VarList
protected VarList()Constructor. -
VarList
Copy constructor.- Parameters:
copyFrom- The list to copy.
-
-
Method Details
-
create
Returns an empty list of variables.- Returns:
- A new empty list of variables.
-
of
Creates a new list of variables.- Parameters:
vars- The variables to create.- Returns:
- A new list of variables.
-
of
Creates a new list of variables.- Parameters:
vars- The variables to create.- Returns:
- A new list of variables.
-
addDefault
Adds the default variables to this list.The default variables are:
- Returns:
- This object.
-
append
Adds a list of variables to this list.- Parameters:
vars- The variables to append to this list.- Returns:
- This object.
-
append
Adds a list of variables to this list.- Parameters:
vars- The variables to append to this list.- Returns:
- This object.
-
append
Adds a list of variables to this list.- Parameters:
vars- The variables to append to this list.- Returns:
- This object.
-
copy
Makes a copy of this list.- Returns:
- A new copy of this list.
-