|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--game.libraries.general.Aggregate
Static class to calculate aggregated statistics.
| Nested Class Summary | |
static interface |
Aggregate.Value
|
| Constructor Summary | |
Aggregate()
|
|
| Method Summary | |
static float |
average(java.util.Collection collection,
Aggregate.Value value)
Averages the characteristic over the included objects. |
static void |
execute(java.util.Collection collection,
Aggregate.Value value)
Merely executes the get call for each object in the collection. |
static float |
maximum(java.util.Collection collection,
Aggregate.Value value)
Finds the maximum of the characteristic over the included objects. |
static java.lang.Object |
maximumObject(java.util.Collection collection,
Aggregate.Value value)
Finds object with the maximum of the characteristic over the included objects. |
static float |
minimum(java.util.Collection collection,
Aggregate.Value value)
Finds the minimum of the characteristic over the included objects. |
static float |
sum(java.util.Collection collection,
Aggregate.Value value)
Sums the characteristic over the included objects. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Aggregate()
| Method Detail |
public static void execute(java.util.Collection collection,
Aggregate.Value value)
value - the value interface to get the data.collection - the collection to iterate over.
public static float sum(java.util.Collection collection,
Aggregate.Value value)
value - the value interface to get the data.collection - the collection to iterate over.
public static float average(java.util.Collection collection,
Aggregate.Value value)
value - the value interface to get the data.collection - the collection to iterate over.
public static float minimum(java.util.Collection collection,
Aggregate.Value value)
value - the value interface to get the data.collection - the collection to iterate over.
public static float maximum(java.util.Collection collection,
Aggregate.Value value)
value - the value interface to get the data.collection - the collection to iterate over.
public static java.lang.Object maximumObject(java.util.Collection collection,
Aggregate.Value value)
value - the value interface to get the data.collection - the collection to iterate over.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||