org.codehaus.gpars

groovyx.gpars.extra166y
[Java] Class Ops

java.lang.Object
  groovyx.gpars.extra166y.Ops

public class Ops

Interfaces and utilities declaring per-element operations used within parallel methods on aggregates. This class provides type names for all operation signatures accepting zero, one or two arguments, and returning zero or one results, for parameterized types, as well as specializations to int, long, and double. In keeping with normal Java evaluation rules that promote, for example short to int, operation names for these smaller types are absent.

Preliminary release note: Some of the declarations in this class are likely to be moved elsewhere in the JDK libraries upon actual release, and most likely will not all nested in the same class.

The naming conventions are as follows:

result = op(a) or result = op(a,b)
arg types result type
a b int long double Object
int <none> Ops.IntOp Ops.IntToLong Ops.IntToDouble Ops.IntToObject
int Ops.BinaryIntOp Ops.IntAndIntToLong Ops.IntAndIntToDouble Ops.IntAndIntToObject
long Ops.IntAndLongToInt Ops.IntAndLongToLong Ops.IntAndLongToDouble Ops.IntAndLongToObject
double Ops.IntAndDoubleToInt Ops.IntAndDoubleToLong Ops.IntAndDoubleToDouble Ops.IntAndDoubleToObject
Object Ops.IntAndObjectToInt Ops.IntAndObjectToLong Ops.IntAndObjectToDouble Ops.IntAndObjectToObject
long <none> Ops.LongToInt Ops.LongOp Ops.LongToDouble Ops.LongToObject
int Ops.LongAndIntToInt Ops.LongAndIntToLong Ops.LongAndIntToDouble Ops.LongAndIntToObject
long Ops.LongAndLongToInt Ops.BinaryLongOp Ops.LongAndLongToDouble Ops.LongAndLongToObject
double Ops.LongAndDoubleToInt Ops.LongAndDoubleToLong Ops.LongAndDoubleToDouble Ops.LongAndDoubleToObject
Object Ops.LongAndObjectToInt Ops.LongAndObjectToLong Ops.LongAndObjectToDouble Ops.LongAndObjectToObject
double <none> Ops.DoubleToInt Ops.DoubleToLong Ops.DoubleOp Ops.DoubleToObject
int Ops.DoubleAndIntToInt Ops.DoubleAndIntToLong Ops.DoubleAndIntToDouble Ops.DoubleAndIntToObject
long Ops.DoubleAndLongToInt Ops.DoubleAndLongToLong Ops.DoubleAndLongToDouble Ops.DoubleAndLongToObject
double Ops.DoubleAndDoubleToInt Ops.DoubleAndDoubleToLong Ops.BinaryDoubleOp Ops.DoubleAndDoubleToObject
Object Ops.DoubleAndObjectToInt Ops.DoubleAndObjectToLong Ops.DoubleAndObjectToDouble Ops.DoubleAndObjectToObject
Object <none> Ops.ObjectToInt Ops.ObjectToLong Ops.ObjectToDouble Ops.Op
int Ops.ObjectAndIntToInt Ops.ObjectAndIntToLong Ops.ObjectAndIntToDouble Ops.ObjectAndIntToObject
long Ops.ObjectAndLongToInt Ops.ObjectAndLongToLong Ops.ObjectAndLongToDouble Ops.ObjectAndLongToObject
double Ops.ObjectAndDoubleToInt Ops.ObjectAndDoubleToLong Ops.ObjectAndDoubleToDouble Ops.ObjectAndDoubleToObject
Object Ops.ObjectAndObjectToInt Ops.ObjectAndObjectToLong Ops.ObjectAndObjectToDouble Ops.BinaryOp

In addition to stated signatures, implementations of these interfaces must work safely in parallel. In general, this means methods should operate only on their arguments, and should not rely on ThreadLocals, unsafely published globals, or other unsafe constructions. Additionally, they should not block waiting for synchronization.

This class is normally best used via import static.


Nested Class Summary
static interface Ops.Action

static interface Ops.BinaryDoubleOp

static interface Ops.BinaryDoublePredicate

static interface Ops.BinaryIntOp

static interface Ops.BinaryIntPredicate

static interface Ops.BinaryLongOp

static interface Ops.BinaryLongPredicate

static interface Ops.BinaryOp

static interface Ops.BinaryPredicate

static interface Ops.DoubleAndDoubleProcedure

static interface Ops.DoubleAndDoubleToInt

static interface Ops.DoubleAndDoubleToLong

static interface Ops.DoubleAndDoubleToObject

static interface Ops.DoubleAndIntPredicate

static interface Ops.DoubleAndIntProcedure

static interface Ops.DoubleAndIntToDouble

static interface Ops.DoubleAndIntToInt

static interface Ops.DoubleAndIntToLong

static interface Ops.DoubleAndIntToObject

static interface Ops.DoubleAndLongPredicate

static interface Ops.DoubleAndLongProcedure

static interface Ops.DoubleAndLongToDouble

static interface Ops.DoubleAndLongToInt

static interface Ops.DoubleAndLongToLong

static interface Ops.DoubleAndLongToObject

static interface Ops.DoubleAndObjectPredicate

static interface Ops.DoubleAndObjectProcedure

static interface Ops.DoubleAndObjectToDouble

static interface Ops.DoubleAndObjectToInt

static interface Ops.DoubleAndObjectToLong

static interface Ops.DoubleAndObjectToObject

static interface Ops.DoubleComparator

static interface Ops.DoubleGenerator

static interface Ops.DoubleOp

static interface Ops.DoublePredicate

static interface Ops.DoubleProcedure

static interface Ops.DoubleReducer

static interface Ops.DoubleToInt

static interface Ops.DoubleToLong

static interface Ops.DoubleToObject

static interface Ops.Generator

static interface Ops.IntAndDoublePredicate

static interface Ops.IntAndDoubleProcedure

static interface Ops.IntAndDoubleToDouble

static interface Ops.IntAndDoubleToInt

static interface Ops.IntAndDoubleToLong

static interface Ops.IntAndDoubleToObject

static interface Ops.IntAndIntProcedure

static interface Ops.IntAndIntToDouble

static interface Ops.IntAndIntToLong

static interface Ops.IntAndIntToObject

static interface Ops.IntAndLongPredicate

static interface Ops.IntAndLongProcedure

static interface Ops.IntAndLongToDouble

static interface Ops.IntAndLongToInt

static interface Ops.IntAndLongToLong

static interface Ops.IntAndLongToObject

static interface Ops.IntAndObjectPredicate

static interface Ops.IntAndObjectProcedure

static interface Ops.IntAndObjectToDouble

static interface Ops.IntAndObjectToInt

static interface Ops.IntAndObjectToLong

static interface Ops.IntAndObjectToObject

static interface Ops.IntComparator

static interface Ops.IntGenerator

static interface Ops.IntOp

static interface Ops.IntPredicate

static interface Ops.IntProcedure

static interface Ops.IntReducer

static interface Ops.IntToDouble

static interface Ops.IntToLong

static interface Ops.IntToObject

static interface Ops.LongAndDoublePredicate

static interface Ops.LongAndDoubleProcedure

static interface Ops.LongAndDoubleToDouble

static interface Ops.LongAndDoubleToInt

static interface Ops.LongAndDoubleToLong

static interface Ops.LongAndDoubleToObject

static interface Ops.LongAndIntPredicate

static interface Ops.LongAndIntProcedure

static interface Ops.LongAndIntToDouble

static interface Ops.LongAndIntToInt

static interface Ops.LongAndIntToLong

static interface Ops.LongAndIntToObject

static interface Ops.LongAndLongProcedure

static interface Ops.LongAndLongToDouble

static interface Ops.LongAndLongToInt

static interface Ops.LongAndLongToObject

static interface Ops.LongAndObjectPredicate

static interface Ops.LongAndObjectProcedure

static interface Ops.LongAndObjectToDouble

static interface Ops.LongAndObjectToInt

static interface Ops.LongAndObjectToLong

static interface Ops.LongAndObjectToObject

static interface Ops.LongComparator

static interface Ops.LongGenerator

static interface Ops.LongOp

static interface Ops.LongPredicate

static interface Ops.LongProcedure

static interface Ops.LongReducer

static interface Ops.LongToDouble

static interface Ops.LongToInt

static interface Ops.LongToObject

static interface Ops.ObjectAndDoublePredicate

static interface Ops.ObjectAndDoubleProcedure

static interface Ops.ObjectAndDoubleToDouble

static interface Ops.ObjectAndDoubleToInt

static interface Ops.ObjectAndDoubleToLong

static interface Ops.ObjectAndDoubleToObject

static interface Ops.ObjectAndIntPredicate

static interface Ops.ObjectAndIntProcedure

static interface Ops.ObjectAndIntToDouble

static interface Ops.ObjectAndIntToInt

static interface Ops.ObjectAndIntToLong

static interface Ops.ObjectAndIntToObject

static interface Ops.ObjectAndLongPredicate

static interface Ops.ObjectAndLongProcedure

static interface Ops.ObjectAndLongToDouble

static interface Ops.ObjectAndLongToInt

static interface Ops.ObjectAndLongToLong

static interface Ops.ObjectAndLongToObject

static interface Ops.ObjectAndObjectProcedure

static interface Ops.ObjectAndObjectToDouble

static interface Ops.ObjectAndObjectToInt

static interface Ops.ObjectAndObjectToLong

static interface Ops.ObjectToDouble

static interface Ops.ObjectToInt

static interface Ops.ObjectToLong

static interface Ops.Op

static interface Ops.Predicate

static interface Ops.Procedure

static interface Ops.Reducer

 
Constructor Summary
private Ops()

 
Method Summary
 
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()
 

Constructor Detail

Ops

private Ops()


 

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