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
-
Method Summary
Modifier and TypeMethodDescriptionAdds the default variables to this list.final VarList
Adds 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 VarList
create()
Returns an empty list of variables.static final VarList
Creates a new list of variables.static VarList
Creates 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, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods 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.
-
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.
-
addDefault
Adds the default variables to this list.The default variables are:
- Returns:
- This object.
-
copy
Makes a copy of this list.- Returns:
- A new copy of this list.
-