|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Value>
fiftyone.mobile.detection.entities.Values
public class Values
Encapsulates a list of one or more values. Provides methods to return boolean, double and string representations of the values list.
The class contains helper methods to make consuming the data set easier.
For more information see http://51degrees.mobi/Support/Documentation/Java
| Field Summary | |
|---|---|
private Property |
property
The property the list of values relates to. |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
Values(Property property,
Collection<Value> values)
Constructs a new instance of the values list. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Field Detail |
|---|
private final Property property
| Constructor Detail |
|---|
Values(Property property,
Collection<Value> values)
property - Property the values list relates tovalues - IEnumerable of values to use to initialise the list| Method Detail |
|---|
public boolean toBool()
throws IOException
IOException
public double toDouble()
throws IOException
IOException
MobileException - Thrown if the method is called for a property
with multiple values
public String[] toStringArray()
throws IOException
IOExceptionpublic String toString()
toString in class AbstractCollection<Value>
public boolean getIsDefault()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||