Class PJoinedArray

java.lang.Object
org.mapfish.print.wrapper.PJoinedArray
All Implemented Interfaces:
PArray

public final class PJoinedArray extends Object implements PArray
PArray that is consists of several PArray objects merged together.
  • Constructor Details

    • PJoinedArray

      public PJoinedArray(PArray[] arrays)
      Constructor.
      Parameters:
      arrays - the arrays that constitute the joined array.
  • Method Details

    • size

      public int size()
      Description copied from interface: PArray
      Return the size of the array.
      Specified by:
      size in interface PArray
    • getObject

      public PObject getObject(int i)
      Description copied from interface: PArray
      Get the element at the index as a object.
      Specified by:
      getObject in interface PArray
      Parameters:
      i - the index of the object to access
    • getArray

      public PArray getArray(int i)
      Description copied from interface: PArray
      Get the element at the index as a json array.
      Specified by:
      getArray in interface PArray
      Parameters:
      i - the index of the element to access
    • getInt

      public int getInt(int i)
      Description copied from interface: PArray
      Get the element at the index as an integer.
      Specified by:
      getInt in interface PArray
      Parameters:
      i - the index of the element to access
    • getLong

      public long getLong(int i)
      Description copied from interface: PArray
      Get the element at the index as a long.
      Specified by:
      getLong in interface PArray
      Parameters:
      i - the index of the element to access
    • getFloat

      public float getFloat(int i)
      Description copied from interface: PArray
      Get the element at the index as a float.
      Specified by:
      getFloat in interface PArray
      Parameters:
      i - the index of the element to access
    • getDouble

      public double getDouble(int i)
      Description copied from interface: PArray
      Get the element at the index as a double.
      Specified by:
      getDouble in interface PArray
      Parameters:
      i - the index of the element to access
    • getString

      public String getString(int i)
      Description copied from interface: PArray
      Get the element at the index as a string.
      Specified by:
      getString in interface PArray
      Parameters:
      i - the index of the element to access
    • getBool

      public boolean getBool(int i)
      Description copied from interface: PArray
      Get the element as a boolean.
      Specified by:
      getBool in interface PArray
      Parameters:
      i - the index of the element to access
    • getPath

      public String getPath(String key)
      Description copied from interface: PArray
      Gets the string representation of the path to the current element.
      Specified by:
      getPath in interface PArray
      Parameters:
      key - the leaf key
    • getCurrentPath

      public String getCurrentPath()
      Description copied from interface: PArray
      Gets the string representation of the path to the current element.
      Specified by:
      getCurrentPath in interface PArray
    • get

      public Object get(int i)
      Description copied from interface: PArray
      Get the object at the given index.
      Specified by:
      get in interface PArray
      Parameters:
      i - the index of the element to access