@Deprecated public class IntValue extends ExplanationNumberValue<IntValue> implements Comparable<IntValue>
Modifier and Type | Class and Description |
---|---|
static class |
IntValue.IntValueAdapter
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
static IntValue |
MINUS_ONE
Deprecated.
|
static IntValue |
ONE
Deprecated.
|
static IntValue |
ZERO
Deprecated.
|
EMPTY, LONG, REGULAR, SHORT
Constructor and Description |
---|
IntValue(int value)
Deprecated.
|
IntValue(int value,
ExplanationNumberValue<?> beforeCastValue,
boolean autocast)
Deprecated.
Cast constructor
|
IntValue(IntValue lv1,
IntValue lv2,
int value,
Formulas operand)
Deprecated.
Formula constructor
|
IntValue(IntValue result,
NumberOperations function,
IntValue... params)
Deprecated.
Function constructor
|
IntValue(String valueString)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static IntValue |
abs(IntValue value)
Deprecated.
|
static IntValue |
add(IntValue value1,
IntValue value2)
Deprecated.
Adds left hand operand to right hand operand
|
static IntValue |
autocast(byte x,
IntValue y)
Deprecated.
Is used to overload implicit cast operators from byte to org.openl.meta.IntValue
|
static IntValue |
autocast(char x,
IntValue y)
Deprecated.
Is used to overload implicit cast operators from char to org.openl.meta.IntValue
|
static IntValue |
autocast(int x,
IntValue y)
Deprecated.
Is used to overload implicit cast operators from int to org.openl.meta.IntValue
|
static BigDecimalValue |
autocast(IntValue x,
BigDecimalValue y)
Deprecated.
|
static BigIntegerValue |
autocast(IntValue x,
BigIntegerValue y)
Deprecated.
|
static DoubleValue |
autocast(IntValue x,
DoubleValue y)
Deprecated.
|
static FloatValue |
autocast(IntValue x,
FloatValue y)
Deprecated.
|
static LongValue |
autocast(IntValue x,
LongValue y)
Deprecated.
|
static IntValue |
autocast(short x,
IntValue y)
Deprecated.
Is used to overload implicit cast operators from short to org.openl.meta.IntValue
|
static DoubleValue |
avg(IntValue... values)
Deprecated.
|
static IntValue |
big(IntValue[] values,
int position)
Deprecated.
Sorts the array values in descending order and returns the value from array values at position
position
|
static IntValue |
cast(BigDecimal x,
IntValue y)
Deprecated.
|
static IntValue |
cast(BigInteger x,
IntValue y)
Deprecated.
|
static IntValue |
cast(double x,
IntValue y)
Deprecated.
|
static IntValue |
cast(float x,
IntValue y)
Deprecated.
|
static BigDecimal |
cast(IntValue x,
BigDecimal y)
Deprecated.
|
static BigInteger |
cast(IntValue x,
BigInteger y)
Deprecated.
|
static byte |
cast(IntValue x,
byte y)
Deprecated.
|
static ByteValue |
cast(IntValue x,
ByteValue y)
Deprecated.
|
static char |
cast(IntValue x,
char y)
Deprecated.
|
static double |
cast(IntValue x,
double y)
Deprecated.
|
static float |
cast(IntValue x,
float y)
Deprecated.
|
static int |
cast(IntValue x,
int y)
Deprecated.
|
static long |
cast(IntValue x,
long y)
Deprecated.
|
static short |
cast(IntValue x,
short y)
Deprecated.
|
static ShortValue |
cast(IntValue x,
ShortValue y)
Deprecated.
|
static IntValue |
cast(long x,
IntValue y)
Deprecated.
|
int |
compareTo(IntValue o)
Deprecated.
|
static IntValue |
copy(IntValue value,
String name)
Deprecated.
|
IntValue |
copy(String name)
Deprecated.
Copy the current value with new name name
|
static IntValue |
dec(IntValue value)
Deprecated.
|
static DoubleValue |
divide(IntValue value1,
IntValue value2)
Deprecated.
Divides left hand operand by right hand operand
|
double |
doubleValue()
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
|
float |
floatValue()
Deprecated.
|
int |
getValue()
Deprecated.
Returns the value of the current variable
|
int |
hashCode()
Deprecated.
|
static IntValue |
inc(IntValue value)
Deprecated.
|
int |
intValue()
Deprecated.
|
long |
longValue()
Deprecated.
|
static IntValue |
max(IntValue... values)
Deprecated.
|
static DoubleValue |
median(IntValue... values)
Deprecated.
|
static IntValue |
min(IntValue... values)
Deprecated.
|
static IntValue |
mod(IntValue number,
IntValue divisor)
Deprecated.
|
static IntValue |
multiply(IntValue value1,
IntValue value2)
Deprecated.
Multiplies left hand operand to right hand operand
|
static IntValue |
negative(IntValue value)
Deprecated.
|
static IntValue |
positive(IntValue value)
Deprecated.
|
static IntValue |
pow(IntValue value1,
IntValue value2)
Deprecated.
|
String |
printValue()
Deprecated.
Prints the value of the current variable
|
static LongValue |
quotient(IntValue number,
IntValue divisor)
Deprecated.
Divides left hand operand by right hand operand
|
static IntValue |
rem(IntValue value1,
IntValue value2)
Deprecated.
Divides left hand operand by right hand operand and returns remainder
|
static IntValue |
small(IntValue[] values,
int position)
Deprecated.
Sorts the array values in ascending order and returns the value from array values at position
position
|
static IntValue[] |
sort(IntValue[] values)
Deprecated.
Sorts the array values
|
static IntValue |
subtract(IntValue value1,
IntValue value2)
Deprecated.
Subtracts left hand operand to right hand operand
|
static IntValue |
sum(IntValue... values)
Deprecated.
|
getCast, getChildren, getDisplayName, getFormula, getFunction, getMetaInfo, getName, getObject, getType, isCast, isFormula, isFunction, isLeaf, setFullName, setMetaInfo, setName, toString
byteValue, shortValue
public static final IntValue ZERO
public static final IntValue ONE
public static final IntValue MINUS_ONE
public IntValue(int value)
public IntValue(IntValue lv1, IntValue lv2, int value, Formulas operand)
public IntValue(int value, ExplanationNumberValue<?> beforeCastValue, boolean autocast)
public IntValue(String valueString)
public IntValue(IntValue result, NumberOperations function, IntValue... params)
public static DoubleValue avg(IntValue... values)
public static DoubleValue median(IntValue... values)
public static IntValue copy(IntValue value, String name)
value
- of variable which should be copiedname
- of new variablepublic static IntValue rem(IntValue value1, IntValue value2)
value1
- org.openl.meta.IntValuevalue2
- org.openl.meta.IntValuepublic static IntValue add(IntValue value1, IntValue value2)
value1
- org.openl.meta.IntValuevalue2
- org.openl.meta.IntValuepublic static IntValue multiply(IntValue value1, IntValue value2)
value1
- org.openl.meta.IntValuevalue2
- org.openl.meta.IntValuepublic static IntValue subtract(IntValue value1, IntValue value2)
value1
- org.openl.meta.IntValuevalue2
- org.openl.meta.IntValuepublic static DoubleValue divide(IntValue value1, IntValue value2)
value1
- org.openl.meta.IntValuevalue2
- org.openl.meta.IntValuepublic static LongValue quotient(IntValue number, IntValue divisor)
number
- org.openl.meta.IntValuedivisor
- org.openl.meta.IntValuepublic static IntValue mod(IntValue number, IntValue divisor)
number
- divisor
- public static IntValue small(IntValue[] values, int position)
values
- array of org.openl.meta.IntValue valuesposition
- int valuepublic static IntValue big(IntValue[] values, int position)
values
- array of org.openl.meta.IntValue valuesposition
- int valuepublic static IntValue pow(IntValue value1, IntValue value2)
value1
- value2
- public static IntValue abs(IntValue value)
value
- public static IntValue negative(IntValue value)
value
- public static IntValue inc(IntValue value)
value
- public static IntValue positive(IntValue value)
value
- public static IntValue dec(IntValue value)
value
- public static IntValue autocast(byte x, IntValue y)
x
- y
- is needed to avoid ambiguity in Java method resolutionpublic static IntValue autocast(short x, IntValue y)
x
- y
- is needed to avoid ambiguity in Java method resolutionpublic static IntValue autocast(int x, IntValue y)
x
- y
- is needed to avoid ambiguity in Java method resolutionpublic static IntValue autocast(char x, IntValue y)
x
- y
- is needed to avoid ambiguity in Java method resolutionpublic IntValue copy(String name)
copy
in class ExplanationNumberValue<IntValue>
public String printValue()
printValue
in interface ExplanationForNumber<IntValue>
public int getValue()
public static IntValue[] sort(IntValue[] values)
values
- an array for sortingpublic static FloatValue autocast(IntValue x, FloatValue y)
public static DoubleValue autocast(IntValue x, DoubleValue y)
public static BigIntegerValue autocast(IntValue x, BigIntegerValue y)
public static BigDecimalValue autocast(IntValue x, BigDecimalValue y)
public static IntValue cast(BigInteger x, IntValue y)
public static IntValue cast(BigDecimal x, IntValue y)
public static byte cast(IntValue x, byte y)
public static short cast(IntValue x, short y)
public static char cast(IntValue x, char y)
public static int cast(IntValue x, int y)
public static long cast(IntValue x, long y)
public static float cast(IntValue x, float y)
public static double cast(IntValue x, double y)
public static ShortValue cast(IntValue x, ShortValue y)
public static BigInteger cast(IntValue x, BigInteger y)
public static BigDecimal cast(IntValue x, BigDecimal y)
public double doubleValue()
doubleValue
in class Number
public float floatValue()
floatValue
in class Number
public int compareTo(IntValue o)
compareTo
in interface Comparable<IntValue>
Copyright © 2004–2022 OpenL Tablets. All rights reserved.