T
- Typepublic interface NumericTypeOps<T> extends TypeOps<T>
Modifier and Type | Method and Description |
---|---|
int |
compare(T value1,
T value2)
Compare two values
|
T |
createMaxPositiveValue()
Maximal positive value representable via current type.
|
T |
createMinNegativeValue()
Minimal negative value representable via current type.
|
T |
createOne()
Value of one
|
T |
createZero()
Value of zero
|
void |
multiplyInto(T value,
T multiplier)
value*=multiplier
|
void |
negate(T value)
-value
|
void |
plusInto(T value,
T increment)
value+=adder
|
create, createCopy, getTypeClass, set
T createZero()
T createOne()
T createMinNegativeValue()
T createMaxPositiveValue()
void plusInto(T value, T increment)
value
- Value to modifyincrement
- Incrementvoid multiplyInto(T value, T multiplier)
value
- Value to modifymultiplier
- Multipliervoid negate(T value)
value
- Value to negateCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.