public class PropertyStateValue extends java.lang.Object implements PropertyValue
PropertyValue implementation that wraps a PropertyState| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(PropertyValue p2) |
int |
count()
The number of values of this object.
|
boolean |
equals(java.lang.Object o) |
Type<?> |
getType()
Determine the type of this value
|
<T> T |
getValue(Type<T> type)
Value of this object.
|
<T> T |
getValue(Type<T> type,
int index)
Value at the given
index. |
int |
hashCode() |
boolean |
isArray()
Determine whether the value is an array of atoms
|
long |
size()
The size of the value of this object.
|
long |
size(int index)
The size of the value at the given
index. |
java.lang.String |
toString() |
PropertyState |
unwrap() |
public boolean isArray()
PropertyValueisArray in interface PropertyValuetrue if and only if the value is an array of atoms.public Type<?> getType()
PropertyValuegetType in interface PropertyValuepublic <T> T getValue(Type<T> type)
PropertyValuetype
argument. If type.isArray() is true, this method returns an
Iterable of the base type of
type containing all values of this property.
If the target type is not the same as the type of this property an attempt
is made to convert the value to the target type. If the conversion fails an
exception is thrown.getValue in interface PropertyValuetype - target typepublic <T> T getValue(Type<T> type, int index)
PropertyValueindex.
The type of the return value is determined by the target type
argument.
If the target type is not the same as the type of this property an attempt
is made to convert the value to the target type. If the conversion fails an
exception is thrown.getValue in interface PropertyValuetype - target typeindexpublic long size()
PropertyValuesize in interface PropertyValuepublic long size(int index)
PropertyValueindex.size in interface PropertyValueindex.public int count()
PropertyValue1 for atoms.count in interface PropertyValuepublic PropertyState unwrap()
public int compareTo(PropertyValue p2)
compareTo in interface java.lang.Comparable<PropertyValue>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"