A B C D E F G H I L M N O P R S T U V 

A

abs(AbstractCalculator) - Method in class org.jdice.calc.Calculator
 
abs(Object) - Method in class org.jdice.calc.Calculator
 
abs(String, char) - Method in class org.jdice.calc.Calculator
 
Abs<CALC> - Interface in org.jdice.calc.extension
 
abs(AbstractCalculator) - Method in interface org.jdice.calc.extension.Abs
 
abs(Object) - Method in interface org.jdice.calc.extension.Abs
 
abs(String, char) - Method in interface org.jdice.calc.extension.Abs
 
abs() - Method in class org.jdice.calc.Num
Return new instance of Num with absolute value
abs(AbstractCalculator) - Method in class org.jdice.calc.TrigCalculator
 
abs(Object) - Method in class org.jdice.calc.TrigCalculator
 
abs(String, char) - Method in class org.jdice.calc.TrigCalculator
 
AbsFunction - Class in org.jdice.calc.extension
 
AbsFunction() - Constructor for class org.jdice.calc.extension.AbsFunction
 
AbstractCalculator<CALC> - Class in org.jdice.calc
Abstract class which is extended by concrete calculator (e.g.
AbstractCalculator() - Constructor for class org.jdice.calc.AbstractCalculator
 
acos(AbstractCalculator) - Method in interface org.jdice.calc.extension.ArcCos
 
acos(Object) - Method in interface org.jdice.calc.extension.ArcCos
 
acos(String, char) - Method in interface org.jdice.calc.extension.ArcCos
 
acos(AbstractCalculator) - Method in class org.jdice.calc.TrigCalculator
 
acos(Object) - Method in class org.jdice.calc.TrigCalculator
 
acos(String, char) - Method in class org.jdice.calc.TrigCalculator
 
add() - Method in class org.jdice.calc.Calculator
 
add(Object) - Method in class org.jdice.calc.Calculator
 
add(String, char) - Method in class org.jdice.calc.Calculator
 
Add<CALC> - Interface in org.jdice.calc.extension
 
add() - Method in interface org.jdice.calc.extension.Add
 
add(Object) - Method in interface org.jdice.calc.extension.Add
 
add(String, char) - Method in interface org.jdice.calc.extension.Add
 
add(Bracket) - Method in class org.jdice.calc.internal.CList
 
add(Operator) - Method in class org.jdice.calc.internal.CList
 
add(FunctionData) - Method in class org.jdice.calc.internal.CList
 
add(Function) - Method in class org.jdice.calc.internal.CList
 
add(Num) - Method in class org.jdice.calc.internal.CList
 
add(Bracket, Num) - Method in class org.jdice.calc.internal.CList
 
add(Class<? extends Operator>) - Method in class org.jdice.calc.internal.CList
 
add(Class<? extends Operator>, Num) - Method in class org.jdice.calc.internal.CList
 
add(int, Object) - Method in class org.jdice.calc.internal.CList
 
add() - Method in class org.jdice.calc.TrigCalculator
 
add(Object) - Method in class org.jdice.calc.TrigCalculator
 
add(String, char) - Method in class org.jdice.calc.TrigCalculator
 
addFunction(Class<? extends Function>, Num...) - Method in class org.jdice.calc.internal.CList
 
addFunction(FunctionData) - Method in class org.jdice.calc.internal.CList
 
AddOperator - Class in org.jdice.calc.extension
 
AddOperator() - Constructor for class org.jdice.calc.extension.AddOperator
 
ArcCos<CALC> - Interface in org.jdice.calc.extension
 
ArcCosFunction - Class in org.jdice.calc.extension
 
ArcCosFunction() - Constructor for class org.jdice.calc.extension.ArcCosFunction
 
ArcSin<CALC> - Interface in org.jdice.calc.extension
 
ArcSinFunction - Class in org.jdice.calc.extension
 
ArcSinFunction() - Constructor for class org.jdice.calc.extension.ArcSinFunction
 
ArcTan<CALC> - Interface in org.jdice.calc.extension
 
ArcTanFunction - Class in org.jdice.calc.extension
 
ArcTanFunction() - Constructor for class org.jdice.calc.extension.ArcTanFunction
 
asin(AbstractCalculator) - Method in interface org.jdice.calc.extension.ArcSin
 
asin(Object) - Method in interface org.jdice.calc.extension.ArcSin
 
asin(String, char) - Method in interface org.jdice.calc.extension.ArcSin
 
asin(AbstractCalculator) - Method in class org.jdice.calc.TrigCalculator
 
asin(Object) - Method in class org.jdice.calc.TrigCalculator
 
asin(String, char) - Method in class org.jdice.calc.TrigCalculator
 
atan(AbstractCalculator) - Method in interface org.jdice.calc.extension.ArcTan
 
atan(Object) - Method in interface org.jdice.calc.extension.ArcTan
 
atan(String, char) - Method in interface org.jdice.calc.extension.ArcTan
 
atan(AbstractCalculator) - Method in class org.jdice.calc.TrigCalculator
 
atan(Object) - Method in class org.jdice.calc.TrigCalculator
 
atan(String, char) - Method in class org.jdice.calc.TrigCalculator
 

B

bind(Class<T>) - Method in class org.jdice.calc.AbstractCalculator
Bind another Calculator class functionalities to expression.
bind(Class, Class<? extends Extension>) - Static method in class org.jdice.calc.internal.BindExtensionProvider
Bind implemented interface used in AbstractCalculator instances with concrete implementation of Operator or Function
BindExtension - Annotation Type in org.jdice.calc
Link operator or function interface that contains overloaded methods to implements in AbstractCalculator with concrete class that implement calculation logic for annotated operator or function.
BindExtensionProvider - Class in org.jdice.calc.internal
Link interfaces of extensions methods implemented in AbstractCalculator with concrete implementation of extension like Operator or Function.
BindExtensionProvider() - Constructor for class org.jdice.calc.internal.BindExtensionProvider
 
Bracket - Enum in org.jdice.calc.internal
Enum for declaring brackets like objects in infix and postfix notation.
builder() - Static method in class org.jdice.calc.Calculator
 
builder(String) - Static method in class org.jdice.calc.Calculator
 
builder(String, Object...) - Static method in class org.jdice.calc.Calculator
 
builder() - Static method in class org.jdice.calc.TrigCalculator
 
builder(String) - Static method in class org.jdice.calc.TrigCalculator
 
builder(String, Object...) - Static method in class org.jdice.calc.TrigCalculator
 
byteValue() - Method in class org.jdice.calc.Num
 
byteValueExact() - Method in class org.jdice.calc.Num
 

C

CacheExtension - Class in org.jdice.calc.internal
Global cache for operator, function, NumConverter classes and instances
CacheExtension() - Constructor for class org.jdice.calc.internal.CacheExtension
 
calc(AbstractCalculator, Num...) - Method in class org.jdice.calc.extension.AbsFunction
 
calc(AbstractCalculator, Num, Num) - Method in class org.jdice.calc.extension.AddOperator
 
calc(AbstractCalculator, Num...) - Method in class org.jdice.calc.extension.ArcCosFunction
 
calc(AbstractCalculator, Num...) - Method in class org.jdice.calc.extension.ArcSinFunction
 
calc(AbstractCalculator, Num...) - Method in class org.jdice.calc.extension.ArcTanFunction
 
calc(AbstractCalculator, Num...) - Method in class org.jdice.calc.extension.CosFunction
 
calc(AbstractCalculator, Num...) - Method in class org.jdice.calc.extension.CoshFunction
 
calc(AbstractCalculator, Num, Num) - Method in class org.jdice.calc.extension.DivOperator
 
calc(AbstractCalculator, Num, Num, Integer, Rounding) - Method in class org.jdice.calc.extension.DivOperator
 
calc(AbstractCalculator, Num...) - Method in class org.jdice.calc.extension.LogFunction
 
calc(AbstractCalculator, Num, Num) - Method in class org.jdice.calc.extension.ModOperator
 
calc(Num, Num, Integer, Rounding) - Method in class org.jdice.calc.extension.ModOperator
 
calc(AbstractCalculator, Num, Num) - Method in class org.jdice.calc.extension.MulOperator
 
calc(AbstractCalculator, Num, Num) - Method in class org.jdice.calc.extension.PowOperator
 
calc(AbstractCalculator, Num, Num, Integer, Rounding) - Method in class org.jdice.calc.extension.PowOperator
 
calc(AbstractCalculator, Num...) - Method in class org.jdice.calc.extension.SinFunction
 
calc(AbstractCalculator, Num...) - Method in class org.jdice.calc.extension.SinhFunction
 
calc(AbstractCalculator, Num...) - Method in class org.jdice.calc.extension.SqrtFunction
 
calc(AbstractCalculator, Num, Num) - Method in class org.jdice.calc.extension.SubOperator
 
calc(AbstractCalculator, Num...) - Method in class org.jdice.calc.extension.TanFunction
 
calc(AbstractCalculator, Num...) - Method in class org.jdice.calc.extension.TanhFunction
 
calc(AbstractCalculator, Num...) - Method in interface org.jdice.calc.Function
Implementation of function that returns a calculated value
calc(AbstractCalculator, Num, Num) - Method in interface org.jdice.calc.Operator
Calculate value for implemented operator
CalcFactory - Class in org.jdice.calc
Common used expressions
CalcFactory() - Constructor for class org.jdice.calc.CalcFactory
 
calculate() - Method in class org.jdice.calc.AbstractCalculator
Calculate prepared expression.
calculate(AbstractCalculator) - Method in class org.jdice.calc.internal.FunctionData
 
calculate(AbstractCalculator, CList) - Method in class org.jdice.calc.internal.PostfixCalculator
 
calculate(AbstractCalculator, CList, boolean) - Method in class org.jdice.calc.internal.PostfixCalculator
 
Calculator - Class in org.jdice.calc
Calculator implementation with basic operations.
Calculator() - Constructor for class org.jdice.calc.Calculator
 
CalculatorException - Exception in org.jdice.calc
Exception wrapper around RuntimeException.
CalculatorException(Throwable) - Constructor for exception org.jdice.calc.CalculatorException
 
CalculatorException(String) - Constructor for exception org.jdice.calc.CalculatorException
 
CalculatorException(String, Throwable) - Constructor for exception org.jdice.calc.CalculatorException
 
CalculatorException(AbstractCalculator, String) - Constructor for exception org.jdice.calc.CalculatorException
 
CalculatorException(AbstractCalculator, String, Throwable) - Constructor for exception org.jdice.calc.CalculatorException
 
ceil() - Method in class org.jdice.calc.Num
Return new instance of Num with ceil value.
change() - Method in class org.jdice.calc.internal.CListListener
 
clear() - Method in class org.jdice.calc.internal.CList
 
CList - Class in org.jdice.calc.internal
List based on LinkedList that can hold object used by JCalc API.
CList() - Constructor for class org.jdice.calc.internal.CList
 
CList(CListListener) - Constructor for class org.jdice.calc.internal.CList
 
CListListener - Class in org.jdice.calc.internal
Listener used to detect changes of expression.
CListListener() - Constructor for class org.jdice.calc.internal.CListListener
 
clone() - Method in class org.jdice.calc.Num
 
closeBracket() - Method in class org.jdice.calc.AbstractCalculator
Close bracket
compareTo(Num) - Method in class org.jdice.calc.Num
Compares this Num with the specified Num.
contains(Num) - Method in class org.jdice.calc.internal.CList
 
contains(Operator) - Method in class org.jdice.calc.internal.CList
 
Cos<CALC> - Interface in org.jdice.calc.extension
 
cos(AbstractCalculator) - Method in interface org.jdice.calc.extension.Cos
 
cos(Object) - Method in interface org.jdice.calc.extension.Cos
 
cos(String, char) - Method in interface org.jdice.calc.extension.Cos
 
cos(AbstractCalculator) - Method in class org.jdice.calc.TrigCalculator
 
cos(Object) - Method in class org.jdice.calc.TrigCalculator
 
cos(String, char) - Method in class org.jdice.calc.TrigCalculator
 
CosFunction - Class in org.jdice.calc.extension
 
CosFunction() - Constructor for class org.jdice.calc.extension.CosFunction
 
Cosh<CALC> - Interface in org.jdice.calc.extension
 
cosh(AbstractCalculator) - Method in interface org.jdice.calc.extension.Cosh
 
cosh(Object) - Method in interface org.jdice.calc.extension.Cosh
 
cosh(String, char) - Method in interface org.jdice.calc.extension.Cosh
 
cosh(AbstractCalculator) - Method in class org.jdice.calc.TrigCalculator
 
cosh(Object) - Method in class org.jdice.calc.TrigCalculator
 
cosh(String, char) - Method in class org.jdice.calc.TrigCalculator
 
CoshFunction - Class in org.jdice.calc.extension
 
CoshFunction() - Constructor for class org.jdice.calc.extension.CoshFunction
 

D

DEFAULT_DECIMAL_SEPARATOR - Static variable in class org.jdice.calc.Properties
 
DEFAULT_OUTPUT_FORMAT - Static variable in class org.jdice.calc.Properties
 
DEFAULT_ROUNDING_MODE - Static variable in class org.jdice.calc.Properties
 
DEFAULT_SCALE - Static variable in class org.jdice.calc.Properties
 
DEFAULT_STRIP_TRAILING_ZEROS - Static variable in class org.jdice.calc.Properties
 
div() - Method in class org.jdice.calc.Calculator
 
div(Object) - Method in class org.jdice.calc.Calculator
 
div(String, char) - Method in class org.jdice.calc.Calculator
 
Div<CALC> - Interface in org.jdice.calc.extension
 
div() - Method in interface org.jdice.calc.extension.Div
 
div(Object) - Method in interface org.jdice.calc.extension.Div
 
div(String, char) - Method in interface org.jdice.calc.extension.Div
 
div() - Method in class org.jdice.calc.TrigCalculator
 
div(Object) - Method in class org.jdice.calc.TrigCalculator
 
div(String, char) - Method in class org.jdice.calc.TrigCalculator
 
DivOperator - Class in org.jdice.calc.extension
 
DivOperator() - Constructor for class org.jdice.calc.extension.DivOperator
 
doubleValue() - Method in class org.jdice.calc.Num
 

E

equals(Object, Object) - Static method in class org.jdice.calc.internal.Objects
 
equals(Object) - Method in class org.jdice.calc.Num
Compares this Decimal (internally BigDecimal) with the specified Object for equality.
equals(BigDecimal) - Method in class org.jdice.calc.Num
 
equals(Object) - Method in class org.jdice.calc.Properties
 
expression(String) - Method in class org.jdice.calc.AbstractCalculator
Parse and append given expression to existing expression
expression(String, Object...) - Method in class org.jdice.calc.AbstractCalculator
Parse and append given expression to existing expression String representation of expression that will be parsed with unknown variables.
expression(AbstractCalculator, boolean) - Method in class org.jdice.calc.AbstractCalculator
Copy expression from given calculator into this expression within or without brackets
Extension - Interface in org.jdice.calc
This interface is extended by Operator or Function During execution every class that implement this interface will have only one instance stored into cache CacheExtension.

F

floatValue() - Method in class org.jdice.calc.Num
 
floor() - Method in class org.jdice.calc.Num
Return new instance of Num with floor value e.g.
fromNum(Num) - Method in interface org.jdice.calc.NumConverter
Convert Num to custom object
function(Class<? extends Function>, Object...) - Method in class org.jdice.calc.AbstractCalculator
Append function with value to expression.
Function - Interface in org.jdice.calc
Methods for function implementation
FunctionData - Class in org.jdice.calc.internal
Data model for data forwarded to concrete function.
FunctionData(Class<? extends Function>, Object...) - Constructor for class org.jdice.calc.internal.FunctionData
 
FunctionData(Function, Object...) - Constructor for class org.jdice.calc.internal.FunctionData
 

G

get(int) - Method in class org.jdice.calc.internal.CList
 
getAllNumConverter() - Static method in class org.jdice.calc.internal.CacheExtension
 
getBigDecimalRound() - Method in enum org.jdice.calc.Rounding
 
getCalculatedValue() - Method in class org.jdice.calc.AbstractCalculator
Return calculated value
getDecimalSeparator() - Method in class org.jdice.calc.AbstractCalculator
Get decimal separator used throughout expression
getDetail() - Method in class org.jdice.calc.Step
 
getExtension(Class) - Static method in class org.jdice.calc.internal.BindExtensionProvider
Get extension implementation class (Operator, Function).
getFunction(String) - Static method in class org.jdice.calc.internal.CacheExtension
 
getFunction(Class<? extends Function>) - Static method in class org.jdice.calc.internal.CacheExtension
 
getFunction() - Method in class org.jdice.calc.internal.FunctionData
 
getFunction(String) - Method in class org.jdice.calc.internal.UseExtension
 
getFunction(Class<? extends Function>) - Method in class org.jdice.calc.internal.UseExtension
 
getFunctionAttributes() - Method in class org.jdice.calc.extension.AbsFunction
ABS accept only one attribute abs(-1-)
getFunctionAttributes() - Method in class org.jdice.calc.extension.ArcCosFunction
ACOS accept only one attribute acos(-1-)
getFunctionAttributes() - Method in class org.jdice.calc.extension.ArcSinFunction
ASIN accept only one attribute asin(-1-)
getFunctionAttributes() - Method in class org.jdice.calc.extension.ArcTanFunction
ATAN accept only one attribute atan(-1-)
getFunctionAttributes() - Method in class org.jdice.calc.extension.CosFunction
COS accept only one attribute cos(-1-)
getFunctionAttributes() - Method in class org.jdice.calc.extension.CoshFunction
COSH accept only one attribute cosh(-1-)
getFunctionAttributes() - Method in class org.jdice.calc.extension.LogFunction
ABS accept only one attribute abs(-1-)
getFunctionAttributes() - Method in class org.jdice.calc.extension.SinFunction
SIN accept only one attribute SIN(-1-)
getFunctionAttributes() - Method in class org.jdice.calc.extension.SinhFunction
SINH accept only one attribute sinh(-1-)
getFunctionAttributes() - Method in class org.jdice.calc.extension.SqrtFunction
 
getFunctionAttributes() - Method in class org.jdice.calc.extension.TanFunction
TAN accept only one attribute tan(-1-)
getFunctionAttributes() - Method in class org.jdice.calc.extension.TanhFunction
TANH accept only one attribute tanh(-1-)
getFunctionAttributes() - Method in interface org.jdice.calc.Function
Define maximum number of parameters that implemented function can accept.
getFunctions() - Static method in class org.jdice.calc.internal.CacheExtension
 
getFunctions() - Method in class org.jdice.calc.internal.UseExtension
 
getFunctionSymbols() - Static method in class org.jdice.calc.internal.CacheExtension
 
getFunctionSymbols() - Method in class org.jdice.calc.internal.UseExtension
 
getGlobalPropertiesFile() - Static method in class org.jdice.calc.Properties
 
getGroupingSeparator() - Method in class org.jdice.calc.AbstractCalculator
Get grouping separator used throughout expression
getGroupingSeparator() - Method in class org.jdice.calc.Properties
 
getInfix() - Method in class org.jdice.calc.AbstractCalculator
Get infix (common arithmetic and logical expression notation) representation of given expression
getInheritedProperties(AbstractCalculator, Num) - Static method in class org.jdice.calc.Properties
 
getInheritedRoundingMode(AbstractCalculator, Num) - Static method in class org.jdice.calc.Properties
If Num don't define scale then use scale from AbstractCalculator instance.
getInheritedScale(AbstractCalculator, Num) - Static method in class org.jdice.calc.Properties
If Num don't define scale then use scale from AbstractCalculator instance.
getInputDecimalSeparator() - Method in class org.jdice.calc.Properties
 
getLast() - Method in class org.jdice.calc.internal.CList
 
getName() - Method in class org.jdice.calc.Num
Get name of this variable.
getNumConverter(Class<?>) - Static method in class org.jdice.calc.internal.CacheExtension
 
getNumConverter(Class<?>, Class<? extends NumConverter>) - Static method in class org.jdice.calc.internal.CacheExtension
 
getOperator(Class<? extends Operator>) - Static method in class org.jdice.calc.internal.CacheExtension
 
getOperator(String) - Static method in class org.jdice.calc.internal.CacheExtension
 
getOperator(Class<? extends Operator>) - Method in class org.jdice.calc.internal.UseExtension
 
getOperator(String) - Method in class org.jdice.calc.internal.UseExtension
 
getOperators() - Static method in class org.jdice.calc.internal.CacheExtension
 
getOperators() - Method in class org.jdice.calc.internal.UseExtension
 
getOperatorSymbols() - Static method in class org.jdice.calc.internal.CacheExtension
 
getOperatorSymbols() - Method in class org.jdice.calc.internal.UseExtension
 
getOriginalValue() - Method in class org.jdice.calc.Num
 
getOutputDecimalSeparator() - Method in class org.jdice.calc.Properties
 
getOutputFormat() - Method in class org.jdice.calc.Num
Return number output format
getOutputFormat() - Method in class org.jdice.calc.Properties
 
getPostfix() - Method in class org.jdice.calc.AbstractCalculator
Convert defined expression to postfix String
getPostfix() - Method in class org.jdice.calc.internal.PostfixCalculator
 
getPriority() - Method in class org.jdice.calc.extension.AddOperator
 
getPriority() - Method in class org.jdice.calc.extension.DivOperator
 
getPriority() - Method in class org.jdice.calc.extension.ModOperator
 
getPriority() - Method in class org.jdice.calc.extension.MulOperator
 
getPriority() - Method in class org.jdice.calc.extension.PowOperator
 
getPriority() - Method in class org.jdice.calc.extension.SubOperator
 
getPriority() - Method in enum org.jdice.calc.internal.Bracket
 
getPriority() - Method in interface org.jdice.calc.Operator
Define operator priority during calculation.
getProperties() - Method in class org.jdice.calc.AbstractCalculator
Get defined properties
getProperties() - Method in class org.jdice.calc.Num
 
getRegex() - Method in enum org.jdice.calc.internal.Bracket
 
getResult() - Method in class org.jdice.calc.internal.FunctionData
 
getRoundingMode() - Method in class org.jdice.calc.AbstractCalculator
Get rounding mode used throughout expression
getRoundingMode() - Method in class org.jdice.calc.Num
Gets the rounding mode for division operations The default is RoundingMode.HALF_UP
getRoundingMode() - Method in class org.jdice.calc.Properties
 
getRoundingMode() - Method in enum org.jdice.calc.Rounding
 
getRoundingMode(String) - Static method in enum org.jdice.calc.Rounding
 
getScale() - Method in class org.jdice.calc.AbstractCalculator
Get scale mode used throughout expression
getScale() - Method in class org.jdice.calc.Num
Sets the scale for division operations.
getScale() - Method in class org.jdice.calc.Properties
 
getSymbol() - Method in class org.jdice.calc.extension.AbsFunction
 
getSymbol() - Method in class org.jdice.calc.extension.AddOperator
 
getSymbol() - Method in class org.jdice.calc.extension.ArcCosFunction
 
getSymbol() - Method in class org.jdice.calc.extension.ArcSinFunction
 
getSymbol() - Method in class org.jdice.calc.extension.ArcTanFunction
 
getSymbol() - Method in class org.jdice.calc.extension.CosFunction
 
getSymbol() - Method in class org.jdice.calc.extension.CoshFunction
 
getSymbol() - Method in class org.jdice.calc.extension.DivOperator
 
getSymbol() - Method in interface org.jdice.calc.Extension
Symbol that represent mathematical operator or function
getSymbol() - Method in class org.jdice.calc.extension.LogFunction
 
getSymbol() - Method in class org.jdice.calc.extension.ModOperator
 
getSymbol() - Method in class org.jdice.calc.extension.MulOperator
 
getSymbol() - Method in class org.jdice.calc.extension.PowOperator
 
getSymbol() - Method in class org.jdice.calc.extension.SinFunction
 
getSymbol() - Method in class org.jdice.calc.extension.SinhFunction
 
getSymbol() - Method in class org.jdice.calc.extension.SqrtFunction
 
getSymbol() - Method in class org.jdice.calc.extension.SubOperator
 
getSymbol() - Method in class org.jdice.calc.extension.TanFunction
 
getSymbol() - Method in class org.jdice.calc.extension.TanhFunction
 
getSymbol() - Method in enum org.jdice.calc.internal.Bracket
 
getThis() - Method in class org.jdice.calc.AbstractCalculator
Return reference of subclass
getThis() - Method in class org.jdice.calc.Calculator
 
getThis() - Method in class org.jdice.calc.TrigCalculator
 
getTracedSteps() - Method in class org.jdice.calc.AbstractCalculator
Get calculation steps if AbstractCalculator.isTracingSteps() is TRUE
getUsedExtensions() - Method in class org.jdice.calc.AbstractCalculator
List registered local scoped operations.
getValues() - Method in class org.jdice.calc.internal.FunctionData
 

H

hashCode() - Method in class org.jdice.calc.Num
Returns the hash code for this Decimal.
hashCode() - Method in class org.jdice.calc.Properties
 
hasRemainder() - Method in class org.jdice.calc.Num
Return TRUE if reminder exist.
hasStripTrailingZeros() - Method in class org.jdice.calc.AbstractCalculator
 
hasStripTrailingZeros() - Method in class org.jdice.calc.Num
 
hasStripTrailingZeros() - Method in class org.jdice.calc.Properties
 

I

InfixParser - Class in org.jdice.calc.internal
Utility class for infix parsing and manipulation.
InfixParser() - Constructor for class org.jdice.calc.internal.InfixParser
 
InfixParser(Properties) - Constructor for class org.jdice.calc.internal.InfixParser
 
InfixParser(UseExtension, Properties) - Constructor for class org.jdice.calc.internal.InfixParser
 
intValue() - Method in class org.jdice.calc.Num
 
intValueExact() - Method in class org.jdice.calc.Num
 
isCalculated() - Method in class org.jdice.calc.AbstractCalculator
Check whether the calculation is made according to a expression
isEmpty() - Method in class org.jdice.calc.internal.CList
 
isEqual(Object) - Method in class org.jdice.calc.Num
Convert value to Num then compare values regardless scale
isEqual(String, char) - Method in class org.jdice.calc.Num
Compare if two number are equal regardless scale
isEqual(Object, int) - Method in class org.jdice.calc.Num
Convert value to Num, and scale both value before comparing them.
isEqual(Object, boolean) - Method in class org.jdice.calc.Num
Scale both value to scale of number which have minimum scale.
isEqual(Object, int, Rounding) - Method in class org.jdice.calc.Num
Convert value to Num, and scale both value before comparing them.
isEqual(Object, Class<? extends NumConverter>) - Method in class org.jdice.calc.Num
 
isNegative() - Method in class org.jdice.calc.Num
 
isTracingSteps() - Method in class org.jdice.calc.AbstractCalculator
Check if is tracking steps enabled or disabled.
isZero() - Method in class org.jdice.calc.Num
 
iterator() - Method in class org.jdice.calc.internal.CList
 

L

listIterator() - Method in class org.jdice.calc.internal.CList
 
listIterator(int) - Method in class org.jdice.calc.internal.CList
 
load(Properties) - Method in class org.jdice.calc.Properties
 
loadProperties(Properties) - Static method in class org.jdice.calc.internal.CacheExtension
 
log(AbstractCalculator) - Method in class org.jdice.calc.Calculator
 
log(Object) - Method in class org.jdice.calc.Calculator
 
log(String, char) - Method in class org.jdice.calc.Calculator
 
Log<CALC> - Interface in org.jdice.calc.extension
 
log(AbstractCalculator) - Method in interface org.jdice.calc.extension.Log
 
log(Object) - Method in interface org.jdice.calc.extension.Log
 
log(String, char) - Method in interface org.jdice.calc.extension.Log
 
log(AbstractCalculator) - Method in class org.jdice.calc.TrigCalculator
 
log(Object) - Method in class org.jdice.calc.TrigCalculator
 
log(String, char) - Method in class org.jdice.calc.TrigCalculator
 
LogFunction - Class in org.jdice.calc.extension
 
LogFunction() - Constructor for class org.jdice.calc.extension.LogFunction
 
longValue() - Method in class org.jdice.calc.Num
 
longValueExact() - Method in class org.jdice.calc.Num
 

M

mod() - Method in class org.jdice.calc.Calculator
 
mod(Object) - Method in class org.jdice.calc.Calculator
 
mod(String, char) - Method in class org.jdice.calc.Calculator
 
Mod<CALC> - Interface in org.jdice.calc.extension
 
mod() - Method in interface org.jdice.calc.extension.Mod
 
mod(Object) - Method in interface org.jdice.calc.extension.Mod
 
mod(String, char) - Method in interface org.jdice.calc.extension.Mod
 
mod() - Method in class org.jdice.calc.TrigCalculator
 
mod(Object) - Method in class org.jdice.calc.TrigCalculator
 
mod(String, char) - Method in class org.jdice.calc.TrigCalculator
 
ModOperator - Class in org.jdice.calc.extension
 
ModOperator() - Constructor for class org.jdice.calc.extension.ModOperator
 
mul() - Method in class org.jdice.calc.Calculator
 
mul(Object) - Method in class org.jdice.calc.Calculator
 
mul(String, char) - Method in class org.jdice.calc.Calculator
 
Mul<CALC> - Interface in org.jdice.calc.extension
 
mul() - Method in interface org.jdice.calc.extension.Mul
 
mul(Object) - Method in interface org.jdice.calc.extension.Mul
 
mul(String, char) - Method in interface org.jdice.calc.extension.Mul
 
mul() - Method in class org.jdice.calc.TrigCalculator
 
mul(Object) - Method in class org.jdice.calc.TrigCalculator
 
mul(String, char) - Method in class org.jdice.calc.TrigCalculator
 
MulOperator - Class in org.jdice.calc.extension
 
MulOperator() - Constructor for class org.jdice.calc.extension.MulOperator
 

N

Num - Class in org.jdice.calc
Mutable wrapper object around BigDecimal object.
Num() - Constructor for class org.jdice.calc.Num
Create Num instance with zero default value
Num(Object) - Constructor for class org.jdice.calc.Num
Create Num instance with value of given Object
Num(String, Object) - Constructor for class org.jdice.calc.Num
Create Num instance with specific name and value of given Object
Num(Object, Class<? extends NumConverter>) - Constructor for class org.jdice.calc.Num
Create Num instance with value of given Object
Num(String, Object, Class<? extends NumConverter>) - Constructor for class org.jdice.calc.Num
Create Num instance with specific name and value of given Object
Num(String, char) - Constructor for class org.jdice.calc.Num
Create Num instance with value from String which use defined decimal separator
Num(String, String, char) - Constructor for class org.jdice.calc.Num
Create Num instance with specific name and value from String which use defined decimal separator
NUM_REGEX(char) - Static method in class org.jdice.calc.Num
 
NumConverter<T> - Interface in org.jdice.calc
Interface that define methods for conversion of custom Object to BigDecimal with which JCalc API knows to work.

O

Objects - Class in org.jdice.calc.internal
 
Objects() - Constructor for class org.jdice.calc.internal.Objects
 
openBracket() - Method in class org.jdice.calc.AbstractCalculator
Open bracket
operator(Class<? extends Operator>) - Method in class org.jdice.calc.AbstractCalculator
Append operator to expression
operator(Class<? extends Operator>, Object) - Method in class org.jdice.calc.AbstractCalculator
Append operator and number to expression
operator(Class<? extends Operator>, String, char) - Method in class org.jdice.calc.AbstractCalculator
Append operator and parsed String value with custom decimal separator used in String representation of value
Operator - Interface in org.jdice.calc
Method for implementing operator.
org.jdice.calc - package org.jdice.calc
 
org.jdice.calc.extension - package org.jdice.calc.extension
 
org.jdice.calc.internal - package org.jdice.calc.internal
 

P

parse(UseExtension, Properties, String, Object...) - Method in class org.jdice.calc.internal.InfixParser
Parse infix string expression with additional properties
parse(String, Object...) - Method in class org.jdice.calc.internal.InfixParser
Parse infix string expression
parseComplexString(String, Character) - Static method in class org.jdice.calc.Num
 
percentOf(Object, Object) - Static method in class org.jdice.calc.CalcFactory
Calculate percent of value
PostfixCalculator - Class in org.jdice.calc.internal
Calculation from postfix
PostfixCalculator() - Constructor for class org.jdice.calc.internal.PostfixCalculator
 
pow() - Method in class org.jdice.calc.Calculator
 
pow(Object) - Method in class org.jdice.calc.Calculator
 
pow(String, char) - Method in class org.jdice.calc.Calculator
 
Pow<CALC> - Interface in org.jdice.calc.extension
 
pow() - Method in interface org.jdice.calc.extension.Pow
 
pow(Object) - Method in interface org.jdice.calc.extension.Pow
 
pow(String, char) - Method in interface org.jdice.calc.extension.Pow
 
pow() - Method in class org.jdice.calc.TrigCalculator
 
pow(Object) - Method in class org.jdice.calc.TrigCalculator
 
pow(String, char) - Method in class org.jdice.calc.TrigCalculator
 
PowOperator - Class in org.jdice.calc.extension
 
PowOperator() - Constructor for class org.jdice.calc.extension.PowOperator
 
Properties - Class in org.jdice.calc
Properties for AbstractCalculator, Num With ability to declare global properties on scope of running application by providing properties file in class path.
Properties() - Constructor for class org.jdice.calc.Properties
 
put(Operator) - Method in class org.jdice.calc.internal.CList
 
put(Num) - Method in class org.jdice.calc.internal.CList
 

R

registerFunction(Class<? extends Function>) - Method in class org.jdice.calc.internal.UseExtension
 
registerOperator(Class<? extends Operator>) - Method in class org.jdice.calc.internal.UseExtension
 
remainder() - Method in class org.jdice.calc.Num
Same as BigDecimal.reminder(BigDecimal.ONE)
remainderSize() - Method in class org.jdice.calc.Num
Return count of number in reminder.
remove(int) - Method in class org.jdice.calc.internal.CList
 
Rounding - Enum in org.jdice.calc
Map rounding between BigDecimal rounding mode, and RoundingMode JCalc API use BigDecimal rounding when it's possible, otherwise it use standard RoundingModey.

S

saveGlobalProperties() - Method in class org.jdice.calc.Properties
File location ..\bin\org.jdice.calc.properties File content: roundingMode=HALF_UP stripTrailingZeros=true decimalSeparator.out='.' decimalSeparator.in='.' numconverter[0]=org.jdice.calc.test.NumTest$CustomObject > org.jdice.calc.test.NumTest$CustomObjectNumConverter operator[0]=org.jdice.calc.test.CustomOperatorFunctionTest$QuestionOperator function[0]=org.jdice.calc.test.CustomOperatorFunctionTest$SumFunction
set(int, Object) - Method in class org.jdice.calc.internal.CList
 
set(Object) - Method in class org.jdice.calc.Num
 
set(Object, Class<? extends NumConverter>) - Method in class org.jdice.calc.Num
 
set(String, char) - Method in class org.jdice.calc.Num
 
setDecimalSeparator(char) - Method in class org.jdice.calc.AbstractCalculator
Set decimal separator for entire expression
setDecimalSeparator(char, char) - Method in class org.jdice.calc.Properties
 
setFunction(Class<? extends Function>) - Static method in class org.jdice.calc.internal.CacheExtension
 
setGroupingSeparator(char) - Method in class org.jdice.calc.AbstractCalculator
Set number grouping separator for entire expression
setGroupingSeparator(Character) - Method in class org.jdice.calc.Properties
 
setInfix(CList) - Method in class org.jdice.calc.AbstractCalculator
Provide infix list for this calculator.
setInputDecimalSeparator(char) - Method in class org.jdice.calc.Properties
 
setName(String) - Method in class org.jdice.calc.Num
 
setNumConverter(Class, Class<? extends NumConverter>) - Static method in class org.jdice.calc.internal.CacheExtension
Register custom converter class on global scope.
setNumConverter(Class, NumConverter) - Static method in class org.jdice.calc.internal.CacheExtension
Register custom converter class on global scope.
setOperator(Class<? extends Operator>) - Static method in class org.jdice.calc.internal.CacheExtension
 
setOutputDecimalSeparator(char) - Method in class org.jdice.calc.Properties
 
setOutputFormat(String) - Method in class org.jdice.calc.Num
Set output format for number.
setOutputFormat(String) - Method in class org.jdice.calc.Properties
 
setProperties(Properties) - Method in class org.jdice.calc.AbstractCalculator
Set proeprties
setProperties(Properties) - Method in class org.jdice.calc.Num
 
setRoundingMode(Rounding) - Method in class org.jdice.calc.AbstractCalculator
Set rounding mode for entire expression
setRoundingMode(Rounding) - Method in class org.jdice.calc.Num
Sets the rounding mode for decimal divisions.
setRoundingMode(Rounding) - Method in class org.jdice.calc.Properties
 
setScale(Integer) - Method in class org.jdice.calc.AbstractCalculator
Set scale for entire expression
setScale(int) - Method in class org.jdice.calc.Num
Sets the scale for division operations.
setScale(int, Rounding) - Method in class org.jdice.calc.Num
Sets the scale and rounding mode for division operations.
setScale(Integer) - Method in class org.jdice.calc.Properties
 
setSteps(LinkedList<Step>) - Method in class org.jdice.calc.AbstractCalculator
 
setStripTrailingZeros(boolean) - Method in class org.jdice.calc.AbstractCalculator
 
setStripTrailingZeros(boolean) - Method in class org.jdice.calc.Num
 
setStripTrailingZeros(boolean) - Method in class org.jdice.calc.Properties
 
setTracingSteps(boolean) - Method in class org.jdice.calc.AbstractCalculator
If set to TRUE it will track step of calculation.
setValues(Object...) - Method in class org.jdice.calc.internal.FunctionData
 
shortValue() - Method in class org.jdice.calc.Num
 
shortValueExact() - Method in class org.jdice.calc.Num
 
signum() - Method in class org.jdice.calc.Num
 
Sin<CALC> - Interface in org.jdice.calc.extension
 
sin(AbstractCalculator) - Method in interface org.jdice.calc.extension.Sin
 
sin(Object) - Method in interface org.jdice.calc.extension.Sin
 
sin(String, char) - Method in interface org.jdice.calc.extension.Sin
 
sin(AbstractCalculator) - Method in class org.jdice.calc.TrigCalculator
 
sin(Object) - Method in class org.jdice.calc.TrigCalculator
 
sin(String, char) - Method in class org.jdice.calc.TrigCalculator
 
SinFunction - Class in org.jdice.calc.extension
 
SinFunction() - Constructor for class org.jdice.calc.extension.SinFunction
 
SingletonExtension - Annotation Type in org.jdice.calc
Annotation properties for NumConverter, Operator, Function implementation which provide that only one instance of implementation can be instantiate.
Sinh<CALC> - Interface in org.jdice.calc.extension
 
sinh(AbstractCalculator) - Method in interface org.jdice.calc.extension.Sinh
 
sinh(Object) - Method in interface org.jdice.calc.extension.Sinh
 
sinh(String, char) - Method in interface org.jdice.calc.extension.Sinh
 
sinh(AbstractCalculator) - Method in class org.jdice.calc.TrigCalculator
 
sinh(Object) - Method in class org.jdice.calc.TrigCalculator
 
sinh(String, char) - Method in class org.jdice.calc.TrigCalculator
 
SinhFunction - Class in org.jdice.calc.extension
 
SinhFunction() - Constructor for class org.jdice.calc.extension.SinhFunction
 
size() - Method in class org.jdice.calc.internal.CList
 
sqrt(AbstractCalculator) - Method in class org.jdice.calc.Calculator
 
sqrt(Object) - Method in class org.jdice.calc.Calculator
 
sqrt(String, char) - Method in class org.jdice.calc.Calculator
 
Sqrt<CALC> - Interface in org.jdice.calc.extension
 
sqrt(AbstractCalculator) - Method in interface org.jdice.calc.extension.Sqrt
 
sqrt(Object) - Method in interface org.jdice.calc.extension.Sqrt
 
sqrt(String, char) - Method in interface org.jdice.calc.extension.Sqrt
 
sqrt(AbstractCalculator) - Method in class org.jdice.calc.TrigCalculator
 
sqrt(Object) - Method in class org.jdice.calc.TrigCalculator
 
sqrt(String, char) - Method in class org.jdice.calc.TrigCalculator
 
SqrtFunction - Class in org.jdice.calc.extension
 
SqrtFunction() - Constructor for class org.jdice.calc.extension.SqrtFunction
 
Step - Class in org.jdice.calc
Describe individual step of calculation process.
Step(String, String) - Constructor for class org.jdice.calc.Step
 
sub() - Method in class org.jdice.calc.Calculator
 
sub(Object) - Method in class org.jdice.calc.Calculator
 
sub(String, char) - Method in class org.jdice.calc.Calculator
 
Sub<CALC> - Interface in org.jdice.calc.extension
 
sub() - Method in interface org.jdice.calc.extension.Sub
 
sub(Object) - Method in interface org.jdice.calc.extension.Sub
 
sub(String, char) - Method in interface org.jdice.calc.extension.Sub
 
sub() - Method in class org.jdice.calc.TrigCalculator
 
sub(Object) - Method in class org.jdice.calc.TrigCalculator
 
sub(String, char) - Method in class org.jdice.calc.TrigCalculator
 
subList(int, int) - Method in class org.jdice.calc.internal.CList
 
SubOperator - Class in org.jdice.calc.extension
 
SubOperator() - Constructor for class org.jdice.calc.extension.SubOperator
 

T

Tan<CALC> - Interface in org.jdice.calc.extension
 
tan(AbstractCalculator) - Method in interface org.jdice.calc.extension.Tan
 
tan(Object) - Method in interface org.jdice.calc.extension.Tan
 
tan(String, char) - Method in interface org.jdice.calc.extension.Tan
 
tan(AbstractCalculator) - Method in class org.jdice.calc.TrigCalculator
 
tan(Object) - Method in class org.jdice.calc.TrigCalculator
 
tan(String, char) - Method in class org.jdice.calc.TrigCalculator
 
TanFunction - Class in org.jdice.calc.extension
 
TanFunction() - Constructor for class org.jdice.calc.extension.TanFunction
 
Tanh<CALC> - Interface in org.jdice.calc.extension
 
tanh(AbstractCalculator) - Method in interface org.jdice.calc.extension.Tanh
 
tanh(Object) - Method in interface org.jdice.calc.extension.Tanh
 
tanh(String) - Method in interface org.jdice.calc.extension.Tanh
 
tanh(String, char) - Method in interface org.jdice.calc.extension.Tanh
 
tanh(AbstractCalculator) - Method in class org.jdice.calc.TrigCalculator
 
tanh(Object) - Method in class org.jdice.calc.TrigCalculator
 
tanh(String) - Method in class org.jdice.calc.TrigCalculator
 
tanh(String, char) - Method in class org.jdice.calc.TrigCalculator
 
TanhFunction - Class in org.jdice.calc.extension
 
TanhFunction() - Constructor for class org.jdice.calc.extension.TanhFunction
 
toArray() - Method in class org.jdice.calc.internal.CList
 
toArray(T[]) - Method in class org.jdice.calc.internal.CList
 
toBigDecimal() - Method in class org.jdice.calc.Num
Get BigDecimal without trailing zeros if Num.hasStripTrailingZeros() is TRUE And use scale and rounding mode defined by properties
toBigDecimal(int) - Method in class org.jdice.calc.Num
Get BigDecimal in defined scale, and use rounding mode and strip trailing zeros from defined properties
toBigDecimal(int, Rounding) - Method in class org.jdice.calc.Num
Return BigDecimal in defined scale with specified rounding mode.
toBigDecimal(Integer, Rounding, boolean) - Method in class org.jdice.calc.Num
Return BigDecimal with given parameters.
toEngineeringString() - Method in class org.jdice.calc.Num
 
toNum(Class<? extends NumConverter>, Object) - Static method in class org.jdice.calc.internal.Objects
 
toNum(Object) - Static method in class org.jdice.calc.Num
 
toNum(T) - Method in interface org.jdice.calc.NumConverter
Convert object to BigDecimal
toNums(Object...) - Static method in class org.jdice.calc.internal.Objects
 
toObject(Class<T>) - Method in class org.jdice.calc.Num
Convert Num to defined custom object
toObject(Class<T>, Class<? extends NumConverter>) - Method in class org.jdice.calc.Num
Convert Num to defined custom object
toObject(Class<T>, NumConverter) - Method in class org.jdice.calc.Num
Convert Num to defined custom object
toPostfix(CList) - Method in class org.jdice.calc.internal.PostfixCalculator
 
toString() - Method in class org.jdice.calc.AbstractCalculator
 
toString() - Method in class org.jdice.calc.extension.AddOperator
 
toString() - Method in class org.jdice.calc.extension.DivOperator
 
toString() - Method in class org.jdice.calc.extension.ModOperator
 
toString() - Method in class org.jdice.calc.extension.MulOperator
 
toString() - Method in class org.jdice.calc.extension.PowOperator
 
toString() - Method in class org.jdice.calc.extension.SubOperator
 
toString() - Method in class org.jdice.calc.internal.FunctionData
 
toString(CList) - Static method in class org.jdice.calc.internal.InfixParser
 
toString(CList, boolean) - Static method in class org.jdice.calc.internal.InfixParser
Print infix (linear, human readable) representation of expression e.g.
toString() - Method in class org.jdice.calc.Num
 
toString(String) - Method in class org.jdice.calc.Num
Use properties (Num.getProperties()) grouping separator and decimal separator and specified format by rules of DecimalFormat DecimalFormat e.g.
toString(char) - Method in class org.jdice.calc.Num
 
toString(Character, char) - Method in class org.jdice.calc.Num
 
toString(Character, char, String) - Method in class org.jdice.calc.Num
 
toString() - Method in class org.jdice.calc.Properties
 
toString() - Method in class org.jdice.calc.Step
 
toStringWithDetail() - Method in class org.jdice.calc.internal.FunctionData
 
TrigCalculator - Class in org.jdice.calc
Calculator implementation with trigonometric functions.
TrigCalculator() - Constructor for class org.jdice.calc.TrigCalculator
 

U

use(Class<? extends Extension>) - Method in class org.jdice.calc.AbstractCalculator
Use custom Operator or Function inside scope of this calculation, which can be used during parsing expression.
UseExtension - Class in org.jdice.calc.internal
Class which hold used extension (operators, functions).
UseExtension() - Constructor for class org.jdice.calc.internal.UseExtension
 

V

val(Object) - Method in class org.jdice.calc.AbstractCalculator
Append value to expression
val(Object, Class<? extends NumConverter>) - Method in class org.jdice.calc.AbstractCalculator
Append value to expression
val(String, char) - Method in class org.jdice.calc.AbstractCalculator
Append String value to expression that will be parsed to Num with defined decimal separator
valueOf(String) - Static method in enum org.jdice.calc.internal.Bracket
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.jdice.calc.Rounding
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.jdice.calc.internal.Bracket
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.jdice.calc.Rounding
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E F G H I L M N O P R S T U V 

JCalc API 2014 Davor Sauer - Apache 2.0