org.codehaus.gpars

groovyx.gpars.dataflow
[Java] Class SelectResult

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.

Authors:
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
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

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

equals

@Override
public boolean equals(java.lang.Object obj)


getIndex

public int getIndex()


getValue

public T getValue()


hashCode

@Override
public int hashCode()


toString

@Override
public java.lang.String toString()


 

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