Interface ConstantProvider


public interface ConstantProvider
This is an interface for providing constants for geometry objects.
Author:
gavalian
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    double
    getDouble(String name, int row)
    Returns the double value for the given row associated with the given key string or 0 if the ConstnatProvider does not contain the key string, the key string does not have value at the specified row index, or the value at the specified row index is an integer.
    int
    getInteger(String name, int row)
    Returns the integer value for the given row associated with the given key string or 0 if the ConstnatProvider does not contain the key string, the key string does not have value at the specified row index, or the value at the specified row index is an double.
    boolean
    Returns true if this ConstantProvider contains an entry for the given key string.
    int
    length(String name)
    Returns the number of rows associated with the given key string or 0 if the ConstantProvider does not contain the key string.
  • Method Details Link icon

    • hasConstant Link icon

      boolean hasConstant(String name)
      Returns true if this ConstantProvider contains an entry for the given key string.
      Parameters:
      name - the key string
      Returns:
      true if the ConstnatProvider contains the given key string
    • length Link icon

      int length(String name)
      Returns the number of rows associated with the given key string or 0 if the ConstantProvider does not contain the key string.
      Parameters:
      name - the key string
      Returns:
      the number of rows for the key string or 0
    • getDouble Link icon

      double getDouble(String name, int row)
      Returns the double value for the given row associated with the given key string or 0 if the ConstnatProvider does not contain the key string, the key string does not have value at the specified row index, or the value at the specified row index is an integer.
      Parameters:
      name - the key string
      row - the row index
      Returns:
      the double value for the given row associated with the given key string or 0
    • getInteger Link icon

      int getInteger(String name, int row)
      Returns the integer value for the given row associated with the given key string or 0 if the ConstnatProvider does not contain the key string, the key string does not have value at the specified row index, or the value at the specified row index is an double.
      Parameters:
      name - the key string
      row - the row index
      Returns:
      the integer value for the given row associated with the given key string or 0