org.codehaus.gpars

groovyx.gpars.pa
[Java] Class CombineHolder

java.lang.Object
  groovyx.gpars.pa.CombineHolder

@java.lang.SuppressWarningsfor (final Map.Entry item : other.content.entrySet()) {
final class CombineHolder

Holds a temporary reduce result for groupBy


Field Summary
private java.util.Map content

 
Constructor Summary
CombineHolder(java.util.Map content)

 
Method Summary
CombineHolder addToMap(java.lang.Object key, java.lang.Object item, groovy.lang.Closure accumulation, groovy.lang.Closure initialValue)

java.util.Map getContent()

CombineHolder merge(CombineHolder other, groovy.lang.Closure accumulation, groovy.lang.Closure initialValue)

 
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

content

private final java.util.Map content


 
Constructor Detail

CombineHolder

CombineHolder(java.util.Map content)


 
Method Detail

addToMap

CombineHolder addToMap(java.lang.Object key, java.lang.Object item, groovy.lang.Closure accumulation, groovy.lang.Closure initialValue)


getContent

public java.util.Map getContent()


merge

@java.lang.SuppressWarningsfinal Object newValue = accumulation.call(currentValue, item);
CombineHolder merge(CombineHolder other, groovy.lang.Closure accumulation, groovy.lang.Closure initialValue)


 

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