Interface Values

All Known Implementing Classes:
ConcreteValues

public interface Values
Simple container for primitive and object values used to define a provided instantiator.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    get(String fieldName)
    Returns the value stored under the given field name, cast to the desired type.
    boolean
    getBoolean(String fieldName)
    Returns the boolean value stored under the given field name.
    byte
    getByte(String fieldName)
    Returns the byte value stored under the given field name.
    char
    getChar(String fieldName)
    Returns the char value stored under the given field name.
    double
    getDouble(String fieldName)
    Returns the double value stored under the given field name.
    float
    getFloat(String fieldName)
    Returns the float value stored under the given field name.
    int
    getInt(String fieldName)
    Returns the int value stored under the given field name.
    long
    getLong(String fieldName)
    Returns the long value stored under the given field name.
    short
    getShort(String fieldName)
    Returns the short value stored under the given field name.
    getString(String fieldName)
    Returns the String value stored under the given field name.
  • Method Details

    • getBoolean

      boolean getBoolean(String fieldName)
      Returns the boolean value stored under the given field name.
      Parameters:
      fieldName - the name of the field
      Returns:
      the stored boolean value
    • getByte

      byte getByte(String fieldName)
      Returns the byte value stored under the given field name.
      Parameters:
      fieldName - the name of the field
      Returns:
      the stored byte value
    • getChar

      char getChar(String fieldName)
      Returns the char value stored under the given field name.
      Parameters:
      fieldName - the name of the field
      Returns:
      the stored char value
    • getDouble

      double getDouble(String fieldName)
      Returns the double value stored under the given field name.
      Parameters:
      fieldName - the name of the field
      Returns:
      the stored double value
    • getFloat

      float getFloat(String fieldName)
      Returns the float value stored under the given field name.
      Parameters:
      fieldName - the name of the field
      Returns:
      the stored float value
    • getInt

      int getInt(String fieldName)
      Returns the int value stored under the given field name.
      Parameters:
      fieldName - the name of the field
      Returns:
      the stored int value
    • getLong

      long getLong(String fieldName)
      Returns the long value stored under the given field name.
      Parameters:
      fieldName - the name of the field
      Returns:
      the stored long value
    • getShort

      short getShort(String fieldName)
      Returns the short value stored under the given field name.
      Parameters:
      fieldName - the name of the field
      Returns:
      the stored short value
    • getString

      String getString(String fieldName)
      Returns the String value stored under the given field name.
      Parameters:
      fieldName - the name of the field
      Returns:
      the stored String value
    • get

      <T> T get(String fieldName)
      Returns the value stored under the given field name, cast to the desired type.
      Type Parameters:
      T - the type to cast to
      Parameters:
      fieldName - the name of the field
      Returns:
      the stored value cast to the requested type