1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-11 09:42:54 +00:00

Calculator engine improved

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-05-31 00:03:04 -03:00
parent ae3007559f
commit 7d4d9114e5
92 changed files with 1368 additions and 1318 deletions

View File

@@ -18,14 +18,15 @@ package com.l2jserver.util.calculator;
/**
* @author <a href="http://www.rogiel.com">Rogiel</a>
*
*/
public abstract class AbstractDoubleFunction<T extends CalculatorContext> implements
Function<T> {
public abstract class AbstractDoubleFunction<T extends CalculatorContext, V extends Enum<V>>
implements Function<T, V> {
private final int order;
private final V type;
public AbstractDoubleFunction(int order) {
public AbstractDoubleFunction(int order, V type) {
this.order = order;
this.type = type;
}
@Override
@@ -33,4 +34,8 @@ public abstract class AbstractDoubleFunction<T extends CalculatorContext> implem
return order;
}
@Override
public V type() {
return type;
}
}