Package groovy.concurrent

# Class ChannelSelect.Result

java.lang.Object
groovy.concurrent.ChannelSelect.Result

Enclosing class:
  ChannelSelect

public static final class ChannelSelect.Result extends Object
The result of a `ChannelSelect.select()` operation, indicating which channel produced the value.

Since:
  6.0.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getIndex()`
  The zero-based index of the channel that produced the value.
  `<T> T`
  `getValue()`
  The received value.
  `String`
  `toString()`
  Returns a diagnostic representation of this selection result.

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

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

- ## Method Details

  - ### getIndex

    public int getIndex()
    The zero-based index of the channel that produced the value.

  - ### getValue

    public <T> T getValue()
    The received value.

  - ### toString

    public String toString()
    Returns a diagnostic representation of this selection result.
    Overrides:
      `toString` in class `Object`
    Returns:
      the selection result description