Module bus.http

Interface CoverArray


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 Details

    • size

      int size()
      Returns:
      The number of elements in the array.
    • isEmpty

      boolean isEmpty()
      Returns:
      True if the array is empty.
    • getMapper

      CoverWapper getMapper(int index)
      Parameters:
      index - The element index.
      Returns:
      The sub-object as a CoverWapper.
    • getArray

      CoverArray getArray(int index)
      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

      String getString(int index)
      Parameters:
      index - The element index.
      Returns:
      The String value.