Package ffx.openmm

Class StringArray

java.lang.Object
ffx.openmm.StringArray

public class StringArray extends Object
String Array.
  • Constructor Summary

    Constructors
    Constructor
    Description
    StringArray(int size)
    OpenMM String Array constructor.
    StringArray(com.sun.jna.ptr.PointerByReference pointer)
    OpenMM String Array constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    append(String string)
    Append a String to the String Array.
    void
    Destroy the String Array.
    get(int i)
    Return the String at index i.
    com.sun.jna.ptr.PointerByReference
    Get the pointer to the String Array.
    int
    Get the number of strings in the String Array.
    void
    resize(int size)
    Resize the String Array.
    void
    set(int i, String string)
    Set the String at index i.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StringArray

      public StringArray(int size)
      OpenMM String Array constructor.
      Parameters:
      size - The size of the String Array.
    • StringArray

      public StringArray(com.sun.jna.ptr.PointerByReference pointer)
      OpenMM String Array constructor.
      Parameters:
      pointer - The String Array pointer.
  • Method Details

    • append

      public void append(String string)
      Append a String to the String Array.
      Parameters:
      string - The String to append.
    • destroy

      public void destroy()
      Destroy the String Array.
    • get

      public String get(int i)
      Return the String at index i.
      Parameters:
      i - The index of the String to return.
      Returns:
      String The requested String.
    • getPointer

      public com.sun.jna.ptr.PointerByReference getPointer()
      Get the pointer to the String Array.
      Returns:
      The pointer to the String Array.
    • getSize

      public int getSize()
      Get the number of strings in the String Array.
      Returns:
      The number of strings in the String Array.
    • resize

      public void resize(int size)
      Resize the String Array.
      Parameters:
      size - The new size of the String Array.
    • set

      public void set(int i, String string)
      Set the String at index i.
      Parameters:
      i - The index of the String to set.
      string - The String to set.