Package org.codehaus.groovy.runtime.powerassert

# Class Value

java.lang.Object
org.codehaus.groovy.runtime.powerassert.Value

public class Value extends Object
A value recorded during evaluation of an assertion, along with the column it is associated with in the assertion's normalized source text.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Value(Object value, int column)`
  Creates a recorded assertion value.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getColumn()`
  Returns the source column associated with the recorded value.
  `Object`
  `getValue()`
  Returns the recorded value.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Value

    public Value(Object value, int column)
    Creates a recorded assertion value.
    Parameters:
      `value` - the recorded value
      `column` - the 1-based column in the normalized assertion text, or a non-positive value if the source position is unknown

- ## Method Details

  - ### getValue

    public Object getValue()
    Returns the recorded value.
    Returns:
      the recorded value

  - ### getColumn

    public int getColumn()
    Returns the source column associated with the recorded value.
    Returns:
      the 1-based column in the normalized assertion text, or a non-positive value if the source position is unknown