Package: org.codehaus.groovy.runtime.powerassert

## [Java] Class ValueRecorder

- org.codehaus.groovy.runtime.powerassert.ValueRecorder

-     public class ValueRecorder
      extends Object

  Records values produced during evaluation of an assertion statement's truth expression.

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public void` | `clear()` Removes all values recorded for the current assertion evaluation.
    `` | `public List<Value>` | `getValues()` Returns the recorded values in recording order.
    `` | `public Object` | `record(Object value, int anchor)` Records a value at the supplied anchor column and returns it unchanged.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### @GroovyABI(since = "1.7.0")
      public void clear()

      Removes all values recorded for the current assertion evaluation.

    - #### public List<Value> getValues()

      Returns the recorded values in recording order.

      Returns:
        the live list of recorded values

    - #### @GroovyABI(since = "1.7.0")
      public Object record(Object value, int anchor)

      Records a value at the supplied anchor column and returns it unchanged.

      Parameters:
        `value` - the value produced while evaluating the assertion
        `anchor` - the 1-based column in the normalized assertion text, or a non-positive value if the position is unknown
      Returns:
        `value`