public class Values extends ArrayList<Value>
The class contains helper methods to make consuming the data set easier.
For more information see http://51degrees.mobi/Support/Documentation/Java
| Modifier and Type | Field and Description |
|---|---|
private Property |
property
The property the list of values relates to.
|
modCount| Constructor and Description |
|---|
Values(Property property,
Collection<Value> values)
Constructs a new instance of the values list.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getIsDefault()
Returns true if any of the values are the null values for the property.
|
boolean |
toBool()
The value represented as a boolean.
|
double |
toDouble()
The value represented as a double.
|
String |
toString()
The values represented as a string where multiple values are seperated by
colons.
|
String[] |
toStringArray()
Returns the values as a string array.
|
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, streamprivate final Property property
Values(Property property, Collection<Value> values)
property - Property the values list relates tovalues - IEnumerable of values to use to initialise the listpublic boolean toBool()
throws IOException
IOExceptionpublic double toDouble()
throws IOException
IOExceptionMobileException - Thrown if the method is called for a property
with multiple valuespublic String[] toStringArray() throws IOException
IOExceptionpublic String toString()
toString in class AbstractCollection<Value>public boolean getIsDefault()
throws IOException
IOException