Skip to content

Commit d611af8

Browse files
committed
(fix) Forgot Options.
1 parent b3c3156 commit d611af8

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package com.googlecode.aviator;
2+
3+
/**
4+
* Aviator Evaluator Configuration options.
5+
*
6+
* @author dennis
7+
*
8+
*/
9+
public enum Options {
10+
/**
11+
* Always use double as BigDecimal.
12+
*
13+
* @since 2.3.4
14+
*/
15+
ALWAYS_USE_DOUBLE_AS_DECIMAL;
16+
17+
/**
18+
* Returns the default value of option.
19+
*
20+
* @return
21+
*/
22+
public Object getDefaultValue() {
23+
switch (this) {
24+
case ALWAYS_USE_DOUBLE_AS_DECIMAL:
25+
return false;
26+
}
27+
return null;
28+
}
29+
}

0 commit comments

Comments
 (0)