public class JsonConfigurationArray extends java.lang.Object implements ConfigurationArray
Constructor and Description |
---|
JsonConfigurationArray(javax.json.JsonArray array) |
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(int i)
Gets the boolean stored at index i.
|
Configuration |
getConfiguration(int i)
Gets the Configuration stored at index i.
|
ConfigurationArray |
getInner(int i)
Gets the ConfigurationArray stored at index i.
|
java.lang.Number |
getNumber(int i)
Gets the number stored at index i.
|
java.lang.String |
getString(int i)
Gets the String stored at index i.
|
int |
size()
The size of the array.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
get, getRawData, getRawDataOfType, hasBoolean, hasConfiguration, hasInner, hasNumber, hasString, iterator, tryGetBoolean, tryGetConfiguration, tryGetInner, tryGetNumber, tryGetString
public int size()
ConfigurationArray
ConfigurationArray.get(int)
is certain to return an object for any
index in [0, size).size
in interface ConfigurationArray
public java.lang.Number getNumber(int i) throws NoSuchPropertyException
ConfigurationArray
getNumber
in interface ConfigurationArray
i
- The index.NoSuchPropertyException
- If there is no number stored at the given index.public boolean getBoolean(int i) throws NoSuchPropertyException
ConfigurationArray
getBoolean
in interface ConfigurationArray
i
- The index.NoSuchPropertyException
- If there is no boolean stored at the given index.public java.lang.String getString(int i) throws NoSuchPropertyException
ConfigurationArray
getString
in interface ConfigurationArray
i
- The index.NoSuchPropertyException
- If there is no String stored at the given index.public Configuration getConfiguration(int i) throws NoSuchPropertyException
ConfigurationArray
getConfiguration
in interface ConfigurationArray
i
- The index.NoSuchPropertyException
- If there is no Configuration stored at the given index.public ConfigurationArray getInner(int i) throws NoSuchPropertyException
ConfigurationArray
getInner
in interface ConfigurationArray
i
- The index.NoSuchPropertyException
- If there is no ConfigurationArray stored at the given index.public java.lang.String toString()
toString
in class java.lang.Object