Contents
Interface ConstantProvider
public interface ConstantProvider
This is an interface for providing constants for geometry objects.
- Author:
- gavalian
-
Method Summary
Modifier and TypeMethodDescriptiondouble
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
hasConstant
(String name) Returns true if this ConstantProvider contains an entry for the given key string.int
Returns the number of rows associated with the given key string or 0 if the ConstantProvider does not contain the key string.
-
Method Details
-
hasConstant
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
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
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 stringrow
- the row index- Returns:
- the double value for the given row associated with the given key string or 0
-
getInteger
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 stringrow
- the row index- Returns:
- the integer value for the given row associated with the given key string or 0
-