Package org.xipki.ca.gateway.acme.util
Class AcmeJson.Array
- java.lang.Object
-
- org.xipki.ca.gateway.acme.util.AcmeJson.Array
-
- All Implemented Interfaces:
java.lang.Iterable<AcmeJson.Value>
- Enclosing class:
- AcmeJson
public static final class AcmeJson.Array extends java.lang.Object implements java.lang.Iterable<AcmeJson.Value>
Represents a JSON array.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AcmeJson.Valueget(int index)Gets theAcmeJson.Valueat the given index.booleanisEmpty()java.util.Iterator<AcmeJson.Value>iterator()Creates a newIteratorthat iterates over the arrayAcmeJson.Value.intsize()Returns the array size.java.util.stream.Stream<AcmeJson.Value>stream()Returns a stream of values.
-
-
-
Method Detail
-
size
public int size()
Returns the array size.- Returns:
- Size of the array
-
isEmpty
public boolean isEmpty()
- Returns:
trueif the array is empty,falseotherwise.
-
get
public AcmeJson.Value get(int index)
Gets theAcmeJson.Valueat the given index.- Parameters:
index- Array index to read from- Returns:
AcmeJson.Valueat this index
-
stream
public java.util.stream.Stream<AcmeJson.Value> stream()
Returns a stream of values.- Returns:
Streamof allAcmeJson.Valueof this array
-
iterator
public java.util.Iterator<AcmeJson.Value> iterator()
Creates a newIteratorthat iterates over the arrayAcmeJson.Value.- Specified by:
iteratorin interfacejava.lang.Iterable<AcmeJson.Value>
-
-