- java.lang.Object
-
- org.praxislive.core.Value
-
- org.praxislive.core.types.PArray
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.praxislive.core.Value
Value.Type<T extends Value>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T extends Value>
Collector<T,?,PArray>collector()booleanequals(Object obj)Values must override the default equals method.booleanequivalent(Value arg)static Optional<PArray>from(Value arg)Valueget(int index)inthashCode()Values must override the default hashcode method.static ArgumentInfoinfo()booleanisEmpty()Check whether this Value is an empty value and has a zero length string representation.Iterator<Value>iterator()static PArrayof(Collection<? extends Value> collection)static PArrayof(Value... args)static PArrayparse(String str)intsize()Stream<Value>stream()StringtoString()Values must override the default method to return a string representation that is immutable.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
EMPTY
public static final PArray EMPTY
-
-
Method Detail
-
get
public Value get(int index)
-
size
public int size()
-
toString
public String toString()
Description copied from class:ValueValues must override the default method to return a string representation that is immutable.
-
isEmpty
public boolean isEmpty()
Description copied from class:ValueCheck whether this Value is an empty value and has a zero length string representation. Subclasses may wish to override this for efficiency if the String representation is lazily created.
-
equivalent
public boolean equivalent(Value arg)
- Overrides:
equivalentin classValue
-
hashCode
public int hashCode()
Description copied from class:ValueValues must override the default hashcode method.
-
equals
public boolean equals(Object obj)
Description copied from class:ValueValues must override the default equals method. This method should only returntrueif the supplied Object is of the same type as the implementing Value. Values of an unknown type should be coerced before calling this method. This method does not have to guarantee thatthis.equals(that) == this.toString().equals(that.toString())
-
of
public static PArray of(Collection<? extends Value> collection)
-
parse
public static PArray parse(String str) throws ValueFormatException
- Throws:
ValueFormatException
-
info
public static ArgumentInfo info()
-
-