groovyx.gpars.dataflow
Class SelectResult<T>
java.lang.Object
groovyx.gpars.dataflow.SelectResult<T>
public final class SelectResult<T>
- extends java.lang.Object
A bean representing the result of the select operation on a Select.
It holds the index of the input channel, which was read, and the obtained value.
- Author:
- Vaclav Pech
Date: 30th Sep 2010
Constructor Summary |
SelectResult(int index,
T value)
Stores the result of a select operation |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
index
private final int index
value
private final T value
SelectResult
SelectResult(int index,
T value)
- Stores the result of a select operation
- Parameters:
index
- The index of the read input channelvalue
- The value read
getIndex
public int getIndex()
getValue
public T getValue()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object