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.
    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

    • getSize

      public int getSize()
      Get the number of strings in the String Array.
      Returns:
      The number of strings in 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.
    • resize

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

      public void append(String string)
      Append a String to the String Array.
      Parameters:
      string - The String to append.
    • 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.
    • destroy

      public void destroy()
      Destroy the String Array.