|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovyx.gpars.dataflow.SelectResult
public final class SelectResult 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.
Field Summary | |
---|---|
private int |
index
|
private T |
value
|
Constructor Summary | |
SelectResult(int index, T value)
Stores the result of a select operation |
Method Summary | |
---|---|
boolean
|
equals(java.lang.Object obj)
|
int
|
getIndex()
|
T
|
getValue()
|
int
|
hashCode()
|
java.lang.String
|
toString()
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
private final int index
private final T value
Constructor Detail |
---|
SelectResult(int index, T value)
index
- The index of the read input channelvalue
- The value read
Method Detail |
---|
@Override public boolean equals(java.lang.Object obj)
public int getIndex()
public T getValue()
@Override public int hashCode()
@Override public java.lang.String toString()
Copyright © 2008–2010 Václav Pech. All Rights Reserved.