groovyx.gpars.pa
Class SumClosure

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by groovy.lang.Closure
          extended by groovyx.gpars.pa.SumClosure
All Implemented Interfaces:
groovy.lang.GroovyCallable, groovy.lang.GroovyObject, java.io.Serializable, java.lang.Cloneable, java.lang.Runnable, java.util.concurrent.Callable

public final class SumClosure
extends groovy.lang.Closure

Represents a {a, b -> a + b} closure

Author:
Vaclav Pech
See Also:
Serialized Form

Field Summary
private static SumClosure ourInstance
           
private static long serialVersionUID
           
 
Fields inherited from class groovy.lang.Closure
DELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF
 
Constructor Summary
private SumClosure()
           
 
Method Summary
 java.lang.Object call(java.lang.Object[] args)
           
static SumClosure getInstance()
           
 
Methods inherited from class groovy.lang.Closure
asWritable, call, call, clone, curry, curry, dehydrate, getDelegate, getDirective, getMaximumNumberOfParameters, getOwner, getParameterTypes, getProperty, getResolveStrategy, getThisObject, isCase, leftShift, leftShift, memoize, memoizeAtLeast, memoizeAtMost, memoizeBetween, ncurry, ncurry, rcurry, rcurry, rehydrate, rightShift, run, setDelegate, setDirective, setProperty, setResolveStrategy, throwRuntimeException, trampoline, trampoline
 
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, invokeMethod, setMetaClass
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

ourInstance

private static final SumClosure ourInstance
Constructor Detail

SumClosure

private SumClosure()
Method Detail

getInstance

public static SumClosure getInstance()

call

public java.lang.Object call(java.lang.Object[] args)
Overrides:
call in class groovy.lang.Closure

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