public class ValueList<V extends Value> extends ArrayList<V> implements Value
modCount| Constructor and Description |
|---|
ValueList()
Creates an empty list of values.
|
ValueList(int initialCapacity) |
ValueList(List<V> values)
Creates a list of values from the provided
List of values. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ValueVisitor valueVisitor)
Performs some processing on a value.
|
ValueBuilder |
asBuilder() |
ValueComparator |
compare(Value val)
Compares a value list for membership in another value list.
|
String |
format(Format format)
Returns a string representing this value, formatted by the
provided
Format. |
String |
getFormatted()
Returns a string representing this value for display purposes.
|
static <V extends Value> |
getInstance(V... value)
Creates a list of the provided elements in the same order.
|
ValueType |
getType()
Returns this object's type, guaranteed not
null. |
ValueList<V> |
replace()
Returns a value from a cache that is equal to this one, if such a value
exists.
|
String |
toString() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAllfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic ValueList(int initialCapacity)
public ValueList()
public static <V extends Value> ValueList<V> getInstance(V... value)
value - zero or more values.public ValueList<V> replace()
Valuepublic ValueComparator compare(Value val)
AbstractList.equals(java.lang.Object).compare in interface Valueo - a Value.ValueComparator.IN if the list is in the provided value list, or
ValueComparator.NOT_IN if not. If the provided value is
not a list, returns .public String getFormatted()
ValuegetFormatted in interface ValueString. Guaranteed not null.public String format(Format format)
ValueFormat.format in interface Valueformat - a Format. Passing in a null will
result in the same behavior as Value.getFormatted().String.public String toString()
toString in class AbstractCollection<V extends Value>public ValueType getType()
Valuenull.public void accept(ValueVisitor valueVisitor)
ValueVisitableaccept in interface ValueVisitablepublic ValueBuilder asBuilder()
Copyright © 2012–2018 Emory University. All rights reserved.