groovyx.gpars.dataflow
Class SelectResult<T>

java.lang.Object
  extended by 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

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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

index

private final int index

value

private final T value
Constructor Detail

SelectResult

SelectResult(int index,
             T value)
Stores the result of a select operation

Parameters:
index - The index of the read input channel
value - The value read
Method Detail

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

Copyright © 2008–2012 Václav Pech. All Rights Reserved.