public class PropertyStateValue extends java.lang.Object implements PropertyValue
PropertyValue implementation that wraps a PropertyState| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(@NotNull PropertyValue p2) |
int |
count()
The number of values of this object.
|
boolean |
equals(java.lang.Object o) |
@NotNull 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() |
@Nullable PropertyState |
unwrap() |
public boolean isArray()
PropertyValueisArray in interface PropertyValuetrue if and only if the value is an array of atoms.@NotNull public @NotNull Type<?> getType()
PropertyValuegetType in interface PropertyValue@NotNull public <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 type@NotNull public <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 PropertyValue@Nullable public @Nullable PropertyState unwrap()
public int compareTo(@NotNull
@NotNull 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.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved