Interface PVArray

    • Method Detail

      • getArray

        Array getArray()
        Get the Array introspection interface.
        Returns:
        the introspection interface
      • getLength

        int getLength()
        Get the current length of the array.
        Returns:
        the current length of the array
      • setLength

        void setLength​(int length)
        Set the length of the array.
        Parameters:
        length - the new length of the array
        Throws:
        IllegalStateException - if the field is not mutable
      • getCapacity

        int getCapacity()
        Get the current capacity of the array, that is, the allocated number of elements.
        Returns:
        the capacity
      • setCapacity

        void setCapacity​(int length)
        Set the capacity.
        Parameters:
        length - the new capacity for the array
        Throws:
        IllegalStateException - if the capacity can't be changed
      • isCapacityMutable

        boolean isCapacityMutable()
        Can the capacity be changed?
        Returns:
        whether it can be modified
      • setCapacityMutable

        void setCapacityMutable​(boolean isMutable)
        Set capacityMutable.
        Parameters:
        isMutable - the new value for capacityMutable