public interface CoverArray
Represents data that can be in any format, such as XML, YAML, Protobuf, etc., structured as an array.
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
-
Method Details
-
size
int size()- Returns:
- The number of elements in the array.
-
isEmpty
boolean isEmpty()- Returns:
- True if the array is empty.
-
getMapper
- Parameters:
index- The element index.- Returns:
- The sub-object as a CoverWapper.
-
getArray
- Parameters:
index- The element index.- Returns:
- The sub-array as a CoverArray.
-
getBool
boolean getBool(int index) - Parameters:
index- The element index.- Returns:
- The boolean value.
-
getInt
int getInt(int index) - Parameters:
index- The element index.- Returns:
- The int value.
-
getLong
long getLong(int index) - Parameters:
index- The element index.- Returns:
- The long value.
-
getFloat
float getFloat(int index) - Parameters:
index- The element index.- Returns:
- The float value.
-
getDouble
double getDouble(int index) - Parameters:
index- The element index.- Returns:
- The double value.
-
getString
- Parameters:
index- The element index.- Returns:
- The String value.
-