Package org.projog.core.math.builtin
Class BitShift
java.lang.Object
org.projog.core.math.AbstractArithmeticOperator
org.projog.core.math.AbstractBinaryIntegerArithmeticOperator
org.projog.core.math.builtin.BitShift
- All Implemented Interfaces:
KnowledgeBaseConsumer,ArithmeticOperator,PreprocessableArithmeticOperator
<< / >> - shift bits left or right.-
Method Summary
Modifier and TypeMethodDescriptionprotected longcalculateLong(long base, long exponent) Returns the result of evaluating an arithmetic expression using the two argumentsstatic BitShiftstatic BitShiftMethods inherited from class org.projog.core.math.AbstractBinaryIntegerArithmeticOperator
calculateMethods inherited from class org.projog.core.math.AbstractArithmeticOperator
calculate, calculate, isPure, preprocess, setKnowledgeBase
-
Method Details
-
shiftLeft
-
shiftRight
-
calculateLong
protected long calculateLong(long base, long exponent) Description copied from class:AbstractBinaryIntegerArithmeticOperatorReturns the result of evaluating an arithmetic expression using the two arguments- Specified by:
calculateLongin classAbstractBinaryIntegerArithmeticOperator
-