org.codehaus.gpars

groovyx.gpars.dataflow
[Java] Class SelectResult

java.lang.Object
  groovyx.gpars.dataflow.SelectResult

public final class SelectResult

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

 
Constructor Summary
SelectResult(int index, java.lang.Object value)

 
Method Summary
boolean equals(java.lang.Object obj)

int getIndex()

java.lang.Object getValue()

int hashCode()

java.lang.String toString()

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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 java.lang.Object value


 
Constructor Detail

SelectResult

SelectResult(int index, java.lang.Object value)


 
Method Detail

equals

@java.lang.Overridepublic int hashCode() {
public boolean equals(java.lang.Object obj)


getIndex

public int getIndex()


getValue

public java.lang.Object getValue()


hashCode

@java.lang.Override
public int hashCode()


toString

@java.lang.Override//noinspection AccessingNonPublicFieldOfAnotherObject
public java.lang.String toString()


 

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