PRIMITIVE - this primitive type (used to facilitate operation chaining on write
operations)public abstract class AbstractIntegerPrimitive<PRIMITIVE extends Primitive<PRIMITIVE>> extends AbstractNumericPrimitive<PRIMITIVE>
int precision primitive implementationNaN, ONEI, ZERO_DOUBLE_LONG_BITS, ZERO_FLOAT_INT_BITS, ZEROI| Constructor and Description |
|---|
AbstractIntegerPrimitive() |
AbstractIntegerPrimitive(Domain aDomain) |
| Modifier and Type | Method and Description |
|---|---|
PRIMITIVE |
absoluteValue()
Replace the current value with the absolute value of itself
|
PRIMITIVE |
and(boolean aValue)
Set this value to the bit and of the integral boolean
vector equivalent of this value and the specified integral boolean vector
|
PRIMITIVE |
and(byte aValue)
Set this value to the bit and of the integral boolean
vector equivalent of this value and the specified integral boolean vector
|
PRIMITIVE |
and(char aValue)
Set this value to the bit and of the integral boolean
vector equivalent of this value and the specified integral boolean vector
|
PRIMITIVE |
and(short aValue)
Set this value to the bit and of the integral boolean
vector equivalent of this value and the specified integral boolean vector
|
boolean |
booleanPostDecrement()
Decrement the scalar value of this object then return the original value
prior to decrementing
|
boolean |
booleanPostIncrement()
Increment the scalar value of this object then return the original value
prior to incrementing
|
boolean |
booleanValue() |
byte |
bytePostDecrement()
Decrement the scalar value of this object then return the original value
prior to decrementing
|
byte |
bytePostIncrement()
Increment the scalar value of this object then return the original value
prior to incrementing
|
byte |
byteValue() |
char |
charPostDecrement()
Decrement the scalar value of this object then return the original value
prior to decrementing
|
char |
charPostIncrement()
Increment the scalar value of this object then return the original value
prior to incrementing
|
char |
charValue() |
PRIMITIVE |
copyUsing(BigDecimal aValue)
Using this real as a factory, produce a new real of the
same type but initialized with the value specified
|
PRIMITIVE |
copyUsing(BigInteger aValue)
Using this real as a factory, produce a new real of the
same type but initialized with the value specified
|
PRIMITIVE |
copyUsing(boolean aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
PRIMITIVE |
copyUsing(byte aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
PRIMITIVE |
copyUsing(char aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
PRIMITIVE |
copyUsing(double aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
PRIMITIVE |
copyUsing(float aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
PRIMITIVE |
copyUsing(long aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
PRIMITIVE |
copyUsing(short aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
PRIMITIVE |
copyUsingPrimitive(SealedPrimitive<?> aValue)
Using this primitive as a factory, produce a new primitive of the same
type but initialized with the value specified
|
PRIMITIVE |
copyUsingReal(SealedReal<?> aValue)
Using this real as a factory, produce a new real of the
same type but initialized with the value specified
|
PRIMITIVE |
copyUsingScalar(SealedScalar<?> aValue)
Using this scalar as a factory, produce a new scalar of the
same type but initialized with the value specified
|
PRIMITIVE |
cube()
Replace the current value with the cube of itself
|
PRIMITIVE |
difference(boolean aValue)
Set the value of this scalar to the mathematical difference
between its current value and the specified value
|
PRIMITIVE |
difference(byte aValue)
Set the value of this scalar to the mathematical difference
between its current value and the specified value
|
PRIMITIVE |
difference(char aValue)
Set the value of this scalar to the mathematical difference
between its current value and the specified value
|
PRIMITIVE |
difference(short aValue)
Set the value of this scalar to the mathematical difference
between its current value and the specified value
|
double |
doublePostDecrement()
Decrement the scalar value of this object then return the original value
prior to decrementing
|
double |
doublePostIncrement()
Increment the scalar value of this object then return the original value
prior to incrementing
|
double |
doubleValue() |
float |
floatPostDecrement()
Decrement the scalar value of this object then return the original value
prior to decrementing
|
float |
floatPostIncrement()
Increment the scalar value of this object then return the original value
prior to incrementing
|
float |
floatValue() |
int |
hashCode() |
<S extends Scalar<?>> |
inducePostDecrement(S aTarget)
Decrement the value of this scalar then induce its original value into
the specified target
|
<S extends Scalar<?>> |
inducePostIncrement(S aTarget)
Increment the value of this scalar then induce its original value into
the specified target
|
<REAL extends Real<?>> |
induceRealMaximum(REAL aTarget)
Induce the maximum domain value into the target
|
<REAL extends Real<?>> |
induceRealMinimum(REAL aTarget)
Induce the minimum domain value into the target
|
<REAL extends Real<?>> |
induceRealValue(REAL aTarget)
Induce the current value of this real into the specified target
|
<S extends Scalar<?>> |
induceScalarMaximum(S aTarget)
Induce the maximum domain value into the target
|
<S extends Scalar<?>> |
induceScalarMinimum(S aTarget)
Induce the minimum domain value into the target
|
<S extends Scalar<?>> |
induceScalarValue(S aTarget)
Induce the current value of this scalar into the specified target
|
PRIMITIVE |
inverse()
Replace the current value its multiplicative inverse (
1/x) |
boolean |
isFinite() |
boolean |
isInfinity() |
boolean |
isInvalid() |
boolean |
isMaximum() |
boolean |
isMinimum() |
boolean |
isModulo()
Answer
true if this value represents the magnitude of a vector
into a modulo set, or finite ring. |
boolean |
isNegative() |
boolean |
isNegativeFinite() |
boolean |
isNegativeInfinity() |
boolean |
isPositive() |
boolean |
isPositiveFinite() |
boolean |
isPositiveInfinity() |
boolean |
isReal()
Answer
true if this value represents the magnitude of a vector
into the set of real numbers. |
boolean |
isUnity()
Answer
true if this value represents the multiplicative
identity in its arithmetic domain. |
boolean |
isZero()
Answer
true if this value represents the additive identity
in its algebraic group. |
long |
longPostDecrement()
Decrement the scalar value of this object then return the original value
prior to decrementing
|
long |
longPostIncrement()
Increment the scalar value of this object then return the original value
prior to incrementing
|
long |
longValue() |
PRIMITIVE |
negate()
Replace the current value with the additive inverse (sign negation) of
itself, that is transform it into a number that when added to the
original yields zero.
|
PRIMITIVE |
or(boolean aValue)
Set this value to the bit or of the integral boolean vector
equivalent of this value and the specified integral boolean vector
|
PRIMITIVE |
or(byte aValue)
Set this value to the bit or of the integral boolean vector
equivalent of this value and the specified integral boolean vector
|
PRIMITIVE |
or(char aValue)
Set this value to the bit or of the integral boolean vector
equivalent of this value and the specified integral boolean vector
|
PRIMITIVE |
or(short aValue)
Set this value to the bit or of the integral boolean vector
equivalent of this value and the specified integral boolean vector
|
PRIMITIVE |
product(boolean aValue)
Set the value of this scalar to the mathematical product of its
current value and the specified value
|
PRIMITIVE |
product(byte aValue)
Set the value of this scalar to the mathematical product of its
current value and the specified value
|
PRIMITIVE |
product(char aValue)
Set the value of this scalar to the mathematical product of its
current value and the specified value
|
PRIMITIVE |
product(short aValue)
Set the value of this scalar to the mathematical product of its
current value and the specified value
|
PRIMITIVE |
quotient(boolean aValue)
Set the value of this scalar to the mathematical quotient between
its current value and the specified value
|
PRIMITIVE |
quotient(byte aValue)
Set the value of this scalar to the mathematical quotient of its
current value and the specified value
|
PRIMITIVE |
quotient(char aValue)
Set the value of this scalar to the mathematical quotient between
its current value and the specified value
|
PRIMITIVE |
quotient(short aValue)
Set the value of this scalar to the mathematical quotient of its
current value and the specified value
|
PRIMITIVE |
round(RoundingStrategy aRoundingStrategy)
Round the current value using the specified rounding
strategy |
PRIMITIVE |
setMaximum()
Replace the current value with maximum value available for the
implementation's numeric
precision. |
PRIMITIVE |
setMinimum()
Replace the current value with minimum value available for the
implementation's numeric
precision. |
PRIMITIVE |
setNumber(Number aValue)
Set this object to the specified system-supported
Number and
answer this object (facilitates chaining) |
PRIMITIVE |
setPrimitive(SealedPrimitive<?> aValue)
Set this property to the specified primitive
|
PRIMITIVE |
setReal(BigDecimal aValue)
Set this property to the specified unlimited
decimal
value and answer this object (facilitates chaining) |
PRIMITIVE |
setReal(BigInteger aValue)
Set this property to the specified unlimited
integer
value and answer this object (facilitates chaining) |
PRIMITIVE |
setReal(SealedReal<?> aValue)
Set this property to the specified numeric
primitive and answer this object (facilitates chaining) |
PRIMITIVE |
setScalar(boolean aValue)
Set this property to the specified
boolean value and answer this
object (facilitates chaining) |
PRIMITIVE |
setScalar(byte aValue)
Set this property to the specified
byte value and answer this
object (facilitates chaining) |
PRIMITIVE |
setScalar(char aValue)
Set this property to the specified
char value and answer this
object (facilitates chaining) |
PRIMITIVE |
setScalar(double aValue)
Set this property to the specified
double value and answer this
object (facilitates chaining) |
PRIMITIVE |
setScalar(float aValue)
Set this property to the specified
float value and answer this
object (facilitates chaining) |
PRIMITIVE |
setScalar(long aValue)
Set this property to the specified
long value and answer this
object (facilitates chaining) |
PRIMITIVE |
setScalar(SealedScalar<?> aValue)
Set this object to the specified scalar
|
PRIMITIVE |
setScalar(short aValue)
Set this property to the specified
short value and answer this
object (facilitates chaining) |
PRIMITIVE |
setUnity()
Replace the current value with the multiplicative identity appropriate
for the implementation (one)
|
PRIMITIVE |
setZero()
Replace the current value with the additive identity appropriate for the
implementation (zero)
|
short |
shortPostDecrement()
Decrement the scalar value of this object then return the original value
prior to decrementing
|
short |
shortPostIncrement()
Increment the scalar value of this object then return the original value
prior to incrementing
|
short |
shortValue() |
PRIMITIVE |
square()
Replace the current value with the square of itself
|
PRIMITIVE |
sum(boolean aValue)
Set the value of this scalar to the mathematical sum of its
current value and the specified value
|
PRIMITIVE |
sum(byte aValue)
Set the value of this scalar to the mathematical sum of its
current value and the specified value
|
PRIMITIVE |
sum(char aValue)
Set the value of this scalar to the mathematical sum of its
current value and the specified value
|
PRIMITIVE |
sum(short aValue)
Set the value of this scalar to the mathematical sum of its
current value and the specified value
|
PRIMITIVE |
swapPrimitives(Primitive<?> aPrimitive)
Swap the value of this primitive for the specified one and set the
specified primitive's value to the current value of this primitive
|
Number |
toNumber() |
String |
toString() |
BigDecimal |
toUnlimitedDecimal() |
BigInteger |
toUnlimitedInteger() |
BigDecimal |
unlimitedDecimalPostDecrement()
Decrement the real value of this object then return the original value
prior to decrementing
|
BigDecimal |
unlimitedDecimalPostIncrement()
Increment the real value of this object then return the original value
prior to incrementing
|
BigInteger |
unlimitedIntegerPostDecrement()
Decrement the real value of this object then return the original value
prior to decrementing
|
BigInteger |
unlimitedIntegerPostIncrement()
Increment the real value of this object then return the original value
prior to incrementing
|
PRIMITIVE |
xor(boolean aValue)
Set this value to the bit exclusive-or of the integral
boolean vector equivalent of this value and the specified integral
boolean vector
|
PRIMITIVE |
xor(byte aValue)
Set this value to the bit exclusive-or of the integral
boolean vector equivalent of this value and the specified integral
boolean vector
|
PRIMITIVE |
xor(char aValue)
Set this value to the bit exclusive-or of the integral
boolean vector equivalent of this value and the specified integral
boolean vector
|
PRIMITIVE |
xor(short aValue)
Set this value to the bit exclusive-or of the integral
boolean vector equivalent of this value and the specified integral
boolean vector
|
append, append, append, append, append, append, append, append, append, append, append, append, append, append, appendCodePoint, charAt, clear, clearContents, clearText, codePointAt, codePointBefore, codePointCount, compareTo, compareToPrimitive, copyUsingText, delete, deleteCharAt, equals, getStructureStrategy, indexOfText, indexOfText, inducePostDecrement, inducePostDecrement, inducePostIncrement, inducePostIncrement, inducePrimitiveValue, induceTextValue, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, isEmpty, isEqualToPrimitive, isEqualToText, isGreaterOrEqualToPrimitive, isGreaterOrEqualToText, isGreaterThanPrimitive, isGreaterThanText, isLessOrEqualToPrimitive, isLessOrEqualToText, isLessThanPrimitive, isLessThanText, isNotEqualToPrimitive, isNotEqualToText, isText, length, lowerCase, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, replace, replace, replaceAll, replaceCharacter, replaceFirst, reverse, setBoolean, setCharacter, setCharAt, setLength, setText, subSequence, substring, substring, textPostDecrement, textPostIncrement, titleCase, toPrimitive, toPrimitive, trim, upperCaseandOfPrimitive, angleWithPrimitive, compareToText, differenceOfPrimitive, hypotenuseWithPrimitive, inducePrimitiveMaximum, inducePrimitiveMinimum, induceTextSize, modOfPrimitive, orOfPrimitive, powerOfPrimitive, productOfPrimitive, quotientOfPrimitive, sumOfPrimitive, toPrimitive, xorOfPrimitiveand, andOfNumber, andOfReal, angleWithReal, compareToNumber, compareToReal, compareToReal, compareToReal, difference, difference, differenceOfNumber, differenceOfReal, gcd, gcdOfNumber, gcdOfReal, hypotenuseWithReal, induceRealSize, isEqual, isEqual, isEqualToNumber, isEqualToReal, isGreater, isGreater, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqualToNumber, isGreaterOrEqualToReal, isGreaterThanNumber, isGreaterThanReal, isLess, isLess, isLessOrEqual, isLessOrEqual, isLessOrEqualToNumber, isLessOrEqualToReal, isLessThanNumber, isLessThanReal, isNotEqual, isNotEqual, isNotEqualToNumber, isNotEqualToReal, mod, mod, modOfNumber, modOfReal, or, orOfNumber, orOfReal, powerOfReal, product, product, productOfNumber, productOfReal, quotient, quotient, quotientOfNumber, quotientOfReal, sum, sum, sumOfNumber, sumOfReal, toReal, unlimitedIntegerModularInverse, xor, xorOfNumber, xorOfRealand, and, andOfScalar, angleWith, angleWithNumber, angleWithScalar, arcCosine, arcSine, arcTangent, assertDomain, assertPrecision, base10Log, boundsCheck, byteMaskAt, byteNotMaskAt, byteValue, ceiling, charMaskAt, charNotMaskAt, charValue, clearByteBitAt, clearCharBitAt, clearDoubleBitAt, clearFloatBitAt, clearIntBitAt, clearLongBitAt, clearShortBitAt, clearUnlimitedDecimalBitAt, clearUnlimitedIntegerBitAt, compareTo, compareTo, compareTo, compareTo, compareTo, compareTo, compareTo, compareTo, compareTo, compareTo, compareTo, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToZero, cosine, cubeRoot, degrees, difference, difference, difference, difference, differenceOfScalar, divideByZero, down, exponential, exponentialLessOne, floor, gcd, gcd, gcd, gcd, gcd, gcdOfScalar, getBooleanBitAt, getByteBitAt, getCharBitAt, getDomain, getDoubleBitAt, getFloatBitAt, getIntBitAt, getLongBitAt, getPrecision, getShortBitAt, getUnlimitedDecimalBitAt, getUnlimitedIntegerBitAt, halfDown, halfEven, halfUp, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hyperbolicCosine, hyperbolicSine, hyperbolicTangent, hypotenuseWith, hypotenuseWithNumber, hypotenuseWithScalar, indexOutOfBoundsAt, induceScalarSize, intGCD, intMaskAt, intModularInverse, intModularQuotient, intNotMaskAt, intValue, invalidate, isAlphabetic, isBmpCodePoint, isConfigurable, isCountable, isDigit, isElastic, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqualToScalar, isExpandable, isFalse, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqualToScalar, isGreaterThanScalar, isHighSurrogate, isIdentifierIgnorable, isIdeographic, isImaginary, isISOControl, isJavaIdentifierPart, isJavaIdentifierStart, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqualToScalar, isLessThanScalar, isLetter, isLetterOrDigit, isLowerCase, isLowSurrogate, isMirrored, isMutable, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqualToScalar, isOrdered, isReducible, isSupplementaryCodePoint, isSurrogate, isTitleCase, isTrue, isUnicode, isUnicodeIdentifierPart, isUnicodeIdentifierStart, isUnique, isUpperCase, isValid, isValidCodePoint, isWhitespace, longGCD, longMaskAt, longModularInverse, longModularQuotient, longNotMaskAt, longSize, longValue, milliseconds, mod, mod, mod, mod, mod, mod, mod, mod, modOfScalar, nanoseconds, naturalLog, naturalLogPlusOne, or, or, orOfScalar, power, power, powerOfNumber, powerOfScalar, product, product, product, product, productOfScalar, promoteTo, quotient, quotient, quotient, quotient, quotientOfScalar, radians, random, setByteBitAt, setCharBitAt, setDoubleBitAt, setE, setEnumeration, setFalse, setFloatBitAt, setIntBitAt, setLongBitAt, setNegativeInfinity, setPi, setPositiveInfinity, setShortBitAt, setTrue, setUnlimitedDecimalBitAt, setUnlimitedIntegerBitAt, shiftRightExtendZero, shortMaskAt, shortNotMaskAt, shortValue, signum, sine, size, squareRoot, sum, sum, sum, sum, sumOfScalar, tangent, toBoolean, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toByteArray, toCharacter, toCodePoint, toEnumeration, toScalar, toUnlimitedInteger, unlimitedIntegerMaskAt, unlimitedIntegerNotMaskAt, up, xor, xor, xorOfScalarclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareToReal, compareToReal, compareToReal, isEqual, isEqual, isEqualToReal, isGreater, isGreater, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqualToReal, isGreaterThanReal, isLess, isLess, isLessOrEqual, isLessOrEqual, isLessOrEqualToReal, isLessThanReal, isNotEqual, isNotEqual, isNotEqualToRealcompareToNumber, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToZero, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqualToNumber, isEqualToScalar, isFalse, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqualToNumber, isGreaterOrEqualToScalar, isGreaterThanNumber, isGreaterThanScalar, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqualToNumber, isLessOrEqualToScalar, isLessThanNumber, isLessThanScalar, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqualToNumber, isNotEqualToScalar, isTrue, toBoolean, toCharacter, toCodePoint, toEnumerationgetConcurrencyisImaginary, isValid, signumisAlphabetic, isBmpCodePoint, isDigit, isHighSurrogate, isIdentifierIgnorable, isIdeographic, isISOControl, isJavaIdentifierPart, isJavaIdentifierStart, isLetter, isLetterOrDigit, isLowerCase, isLowSurrogate, isMirrored, isSupplementaryCodePoint, isSurrogate, isTitleCase, isUnicode, isUnicodeIdentifierPart, isUnicodeIdentifierStart, isUpperCase, isValidCodePoint, isWhitespaceintValuegetPrecisioninduceRealSizeinduceScalarSizegetDomain, longSize, sizeisConfigurable, isCountable, isElastic, isExpandable, isOrdered, isReducible, isUniquetoRealcopyUsing, toScalarcopyand, andOfReal, angleWithReal, difference, difference, differenceOfReal, gcd, gcdOfReal, hypotenuseWithReal, mod, mod, modOfReal, or, orOfReal, powerOfReal, product, product, productOfReal, quotient, quotient, quotientOfReal, sum, sum, sumOfReal, xor, xorOfRealand, and, andOfNumber, andOfScalar, angleWith, angleWithNumber, angleWithScalar, arcCosine, arcSine, arcTangent, base10Log, ceiling, cosine, cubeRoot, decrement, degrees, difference, difference, difference, difference, differenceOfNumber, differenceOfScalar, down, exponential, exponentialLessOne, floor, gcd, gcd, gcd, gcd, gcd, gcdOfNumber, gcdOfScalar, halfDown, halfEven, halfUp, hyperbolicCosine, hyperbolicSine, hyperbolicTangent, hypotenuseWith, hypotenuseWithNumber, hypotenuseWithScalar, increment, invalidate, milliseconds, mod, mod, mod, mod, mod, mod, mod, mod, modOfNumber, modOfScalar, nanoseconds, naturalLog, naturalLogPlusOne, not, or, or, orOfNumber, orOfScalar, power, power, powerOfNumber, powerOfScalar, product, product, product, product, productOfNumber, productOfScalar, quotient, quotient, quotient, quotient, quotientOfNumber, quotientOfScalar, radians, random, setE, setEnumeration, setNegativeInfinity, setPi, setPositiveInfinity, shiftLeft, shiftRight, shiftRightExtendZero, sine, squareRoot, sum, sum, sum, sum, sumOfNumber, sumOfScalar, tangent, up, xor, xor, xorOfNumber, xorOfScalarsetFalse, setTrueintPostDecrement, intPostIncrement, setScalarassertPrecision, promoteToassertDomainpublic AbstractIntegerPrimitive()
public AbstractIntegerPrimitive(Domain aDomain)
public PRIMITIVE absoluteValue() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableScalarabsoluteValue in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>absoluteValue in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>UnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic final PRIMITIVE and(boolean aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarand in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>and in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - an integral boolean vectorUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE and(byte aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarand in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>and in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - an integral boolean vectorUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE and(char aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarand in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>and in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - an integral boolean vectorUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE and(short aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarand in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>and in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - an integral boolean vectorUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final boolean booleanPostDecrement() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableBooleanValueUnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic final boolean booleanPostIncrement() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableBooleanValueUnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic final boolean booleanValue()
booleanpublic final byte bytePostDecrement() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableByteValueUnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic final byte bytePostIncrement() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableByteValueUnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic final byte byteValue()
byteValue in interface SealedByteValuebyteValue in class Numberbytepublic final char charPostDecrement() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableCharacterValueUnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic final char charPostIncrement() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableCharacterValueUnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic final char charValue()
charpublic final PRIMITIVE copyUsing(BigDecimal aValue)
RealReplicatoraValue - a new valuepublic final PRIMITIVE copyUsing(BigInteger aValue)
RealReplicatoraValue - a new valuepublic final PRIMITIVE copyUsing(boolean aValue)
ScalarReplicatoraValue - a new valuepublic final PRIMITIVE copyUsing(byte aValue)
ScalarReplicatoraValue - a new valuepublic final PRIMITIVE copyUsing(char aValue)
ScalarReplicatoraValue - a new valuepublic final PRIMITIVE copyUsing(double aValue)
ScalarReplicatoraValue - a new valuepublic final PRIMITIVE copyUsing(float aValue)
ScalarReplicatoraValue - a new valuepublic final PRIMITIVE copyUsing(long aValue)
ScalarReplicatoraValue - a new valuepublic final PRIMITIVE copyUsing(short aValue)
ScalarReplicatoraValue - a new valuepublic final PRIMITIVE copyUsingPrimitive(SealedPrimitive<?> aValue)
PrimitiveReplicatoraValue - a new valuepublic final PRIMITIVE copyUsingReal(SealedReal<?> aValue)
RealReplicatoraValue - a new valuepublic final PRIMITIVE copyUsingScalar(SealedScalar<?> aValue)
ScalarReplicatoraValue - a new valuepublic final PRIMITIVE cube() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE difference(boolean aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalardifference in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>difference in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - a subtrahendUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE difference(byte aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalardifference in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>difference in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - a subtrahendUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE difference(char aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalardifference in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>difference in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - a subtrahendUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE difference(short aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalardifference in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>difference in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - a subtrahendUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final double doublePostDecrement() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableDoubleValueUnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic final double doublePostIncrement() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableDoubleValueUnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic final double doubleValue()
doubleValue in interface SealedDoubleValuedoubleValue in class Numberdoublepublic final float floatPostDecrement() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableFloatValueUnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic final float floatPostIncrement() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableFloatValueUnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic final float floatValue()
floatValue in interface SealedFloatValuefloatValue in class Numberfloatpublic int hashCode()
hashCode in interface SealedKernelhashCode in class Objectpublic final <S extends Scalar<?>> S inducePostDecrement(S aTarget) throws NullPointerException, NoSuchElementException, UnsupportedOperationException, IllegalStateException
ScalarInductorS - the target typeaTarget - a target into which the current value of this scalar will be
induced, prior to decrementingNullPointerException - a null value was provided when none was expectedNoSuchElementException - an expected parameter was not found in the parameter sourceUnsupportedOperationException - this target primitive cannot be changedIllegalStateException - this target primitive cannot be changed at this timepublic final <S extends Scalar<?>> S inducePostIncrement(S aTarget) throws NullPointerException, NoSuchElementException, UnsupportedOperationException, IllegalStateException
ScalarInductorS - the target typeaTarget - a target into which the current value of this scalar will be
induced, prior to incrementingNullPointerException - a null value was provided when none was expectedNoSuchElementException - an expected parameter was not found in the parameter sourceUnsupportedOperationException - this target primitive cannot be changedIllegalStateException - this target primitive cannot be changed at this timepublic final <REAL extends Real<?>> REAL induceRealMaximum(REAL aTarget) throws NullPointerException, NoSuchElementException, UnsupportedOperationException, IllegalStateException
SealedRealDomainREAL - the target typeaTarget - a target into which this domain's maximum value will be inducedNullPointerException - a null value was provided when none was expectedNoSuchElementException - an expected parameter was not found in the parameter sourceUnsupportedOperationException - this target primitive cannot be changedIllegalStateException - this target primitive cannot be changed at this timepublic final <REAL extends Real<?>> REAL induceRealMinimum(REAL aTarget) throws NullPointerException, NoSuchElementException, UnsupportedOperationException, IllegalStateException
SealedRealDomainREAL - the target typeaTarget - a target into which this domain's minimum value will be inducedNullPointerException - a null value was provided when none was expectedNoSuchElementException - an expected parameter was not found in the parameter sourceUnsupportedOperationException - this target primitive cannot be changedIllegalStateException - this target primitive cannot be changed at this timepublic final <REAL extends Real<?>> REAL induceRealValue(REAL aTarget) throws NullPointerException, NoSuchElementException, UnsupportedOperationException, IllegalStateException
RealInductorREAL - the target typeaTarget - a target into which the current value of this real will be
inducedNullPointerException - a null value was provided when none was expectedNoSuchElementException - an expected parameter was not found in the parameter sourceUnsupportedOperationException - this target primitive cannot be changedIllegalStateException - this target primitive cannot be changed at this timepublic <S extends Scalar<?>> S induceScalarMaximum(S aTarget)
SealedScalarDomainS - the target typeaTarget - a target into which this domain's maximum value will be inducedpublic <S extends Scalar<?>> S induceScalarMinimum(S aTarget)
SealedScalarDomainS - the target typeaTarget - a target into which this domain's minimum value will be inducedpublic final <S extends Scalar<?>> S induceScalarValue(S aTarget)
ScalarInductorS - the target typeaTarget - a target into which the current value of this scalar will be
inducedpublic PRIMITIVE inverse() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableScalar1/x)UnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic final boolean isFinite()
isFinite in interface NumericPropertiesisFinite in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>true if this value represents a valid and finite valuepublic final boolean isInfinity()
public boolean isInvalid()
public boolean isMaximum()
true if this value represents the maximum rational value
in the totally ordered set it representspublic boolean isMinimum()
true if this value represents the minimum rational value
in the totally ordered set it representspublic boolean isModulo()
NumericPropertiestrue if this value represents the magnitude of a vector
into a modulo set, or finite ring. This is not the same as testing
whether this object's implementation resembles the specification for the
MODULO domain, since that is too specific to
implementation machinery. Modulo values, for instance can either be
real or imaginary.true if this value represents the magnitude of a vector
into a modulo set, or finite ringpublic final boolean isNegative()
true if this value represents a negative valuepublic final boolean isNegativeFinite()
isNegativeFinite in interface NumericPropertiesisNegativeFinite in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>true if this value represents a valid, finite and
negative valuepublic final boolean isNegativeInfinity()
true if this value represents negative infinitypublic final boolean isPositive()
true if this value represents a positive valuepublic final boolean isPositiveFinite()
isPositiveFinite in interface NumericPropertiesisPositiveFinite in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>true if this value represents a valid, finite and
negative valuepublic final boolean isPositiveInfinity()
true if this value represents positive infinitypublic final boolean isReal()
NumericPropertiestrue if this value represents the magnitude of a vector
into the set of real numbers. This is not the same as testing whether
this object's implementation resembles the specification for the
REAL domain, since that is too specific to
implementation machinery. This more general test also includes real
modulo values in its specification.true if this value represents the magnitude of a vector
into the set of real numberspublic final boolean isUnity()
NumericPropertiestrue if this value represents the multiplicative
identity in its arithmetic domain. For real numbers this is 1, for
matrices it would be the identity matrix and for functions this
would be a pass-through.true if this value represents the multiplicative
identity in its domainpublic final boolean isZero()
NumericPropertiestrue if this value represents the additive identity
in its algebraic group. For real numbers this is 0, for matrices this
would be the zero matrix and for functions this would map every
parameter to zero.true if this value represents the additive
identity in its algebraic grouppublic final long longPostDecrement() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableLongValueUnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic final long longPostIncrement() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableLongValueUnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic final long longValue()
longValue in interface SealedLongValuelongValue in class Numberlongpublic final PRIMITIVE negate() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableScalarboolean and char values do not exist, these
implementations will simply fail silently.)UnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this object (optional)IllegalArgumentException - if the new value was incommensurate with this object's
specification (optional)public final PRIMITIVE or(boolean aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalaror in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>or in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - an integral boolean vectorUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE or(byte aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalaror in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>or in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - an integral boolean vectorUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE or(char aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalaror in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>or in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - an integral boolean vectorUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE or(short aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalaror in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>or in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - an integral boolean vectorUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE product(boolean aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarproduct in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>product in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - a multiplicandUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE product(byte aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarproduct in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>product in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - a multiplicandUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE product(char aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarproduct in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>product in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - a multiplicandUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE product(short aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarproduct in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>product in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - a multiplicandUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE quotient(boolean aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarquotient in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>quotient in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - a divisorUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE quotient(byte aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarquotient in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>quotient in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - a divisorUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE quotient(char aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarquotient in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>quotient in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - a divisorUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE quotient(short aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarquotient in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>quotient in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - a divisorUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE round(RoundingStrategy aRoundingStrategy) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException, NullPointerException
MutableScalarstrategyUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectNullPointerExceptionpublic PRIMITIVE setMaximum() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableScalarprecision. Unlimited
values will be replaced with the maximum value available for the most
precise system scalar appropriate for the implementation, that is
unlimited integer primitives will set
themselves to the maximum long value and
unlimited decimal primitives will set
themselves to the maximum double value.UnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic PRIMITIVE setMinimum() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableScalarprecision. Unlimited
values will be replaced with the minimum value available for the most
precise system scalar appropriate for the implementation, that is
unlimited integer primitives will set
themselves to the minimum long value and
unlimited decimal primitives will set
themselves to the minimum double value.UnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic PRIMITIVE setNumber(Number aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException, NullPointerException
MutableScalarNumber and
answer this object (facilitates chaining)setNumber in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>setNumber in class AbstractNumericPrimitive<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - a system-supported NumberUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the specified value was incommensurate with this object's
specificationArithmeticException - the numeric value provided was incompatible with with algebraic
interpretation of this objectNullPointerException - a null value was provided though this object does not
accept null valuespublic PRIMITIVE setPrimitive(SealedPrimitive<?> aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException, NullPointerException
MutablePrimitivesetPrimitive in interface MutablePrimitive<PRIMITIVE extends Primitive<PRIMITIVE>>setPrimitive in class AbstractNumericPrimitive<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - a primitiveUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the specified value was incommensurate with this object's
specificationArithmeticException - the numeric value provided was incompatible with with algebraic
interpretation of this objectNullPointerException - a null value was provided though this object does not
accept null valuespublic PRIMITIVE setReal(BigDecimal aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException, NullPointerException
MutableUnlimitedDecimalValuedecimal
value and answer this object (facilitates chaining)aValue - an unlimited decimal valueUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the specified value was incommensurate with this object's
specificationArithmeticException - the numeric value provided was incompatible with with algebraic
interpretation of this objectNullPointerException - a null value was provided though this object does not
accept null valuespublic PRIMITIVE setReal(BigInteger aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException, NullPointerException
MutableUnlimitedIntegerValueinteger
value and answer this object (facilitates chaining)aValue - an unlimited integer valueUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the specified value was incommensurate with this object's
specificationArithmeticException - the numeric value provided was incompatible with with algebraic
interpretation of this objectNullPointerException - a null value was provided though this object does not
accept null valuespublic PRIMITIVE setReal(SealedReal<?> aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException, NullPointerException
MutableRealprimitive and answer this object (facilitates chaining)setReal in interface MutableReal<PRIMITIVE extends Primitive<PRIMITIVE>>setReal in class AbstractNumericPrimitive<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - a numeric primitiveUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the specified value was incommensurate with this object's
specificationArithmeticException - the numeric value provided was incompatible with with algebraic
interpretation of this objectNullPointerException - a null value was provided though this object does not
accept null valuespublic final PRIMITIVE setScalar(boolean aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableBooleanValueboolean value and answer this
object (facilitates chaining)aValue - a boolean valueUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the specified value was incommensurate with this object's
specificationArithmeticException - the numeric value provided was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE setScalar(byte aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableByteValuebyte value and answer this
object (facilitates chaining)aValue - a byte valueUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the specified value was incommensurate with this object's
specificationArithmeticException - the numeric value provided was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE setScalar(char aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableCharacterValuechar value and answer this
object (facilitates chaining)aValue - a char valueUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the specified value was incommensurate with this object's
specificationArithmeticException - the numeric value provided was incompatible with with algebraic
interpretation of this objectpublic PRIMITIVE setScalar(double aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableDoubleValuedouble value and answer this
object (facilitates chaining)aValue - a double valueUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the specified value was incommensurate with this object's
specificationArithmeticException - the numeric value provided was incompatible with with algebraic
interpretation of this objectpublic PRIMITIVE setScalar(float aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableFloatValuefloat value and answer this
object (facilitates chaining)aValue - a float valueUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the specified value was incommensurate with this object's
specificationArithmeticException - the numeric value provided was incompatible with with algebraic
interpretation of this objectpublic PRIMITIVE setScalar(long aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableLongValuelong value and answer this
object (facilitates chaining)aValue - a long valueUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the specified value was incommensurate with this object's
specificationArithmeticException - the numeric value provided was incompatible with with algebraic
interpretation of this objectpublic PRIMITIVE setScalar(SealedScalar<?> aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException, NullPointerException
MutableScalarsetScalar in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>setScalar in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - a scalarUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the specified value was incommensurate with this object's
specificationArithmeticException - the numeric value provided was incompatible with with algebraic
interpretation of this objectNullPointerException - a null value was provided though this object does not
accept null valuespublic final PRIMITIVE setScalar(short aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableShortValueshort value and answer this
object (facilitates chaining)aValue - a short valueUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the specified value was incommensurate with this object's
specificationArithmeticException - the numeric value provided was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE setUnity() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarsetUnity in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>setUnity in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>UnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE setZero() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarsetZero in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>setZero in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>UnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final short shortPostDecrement() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableShortValueUnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic final short shortPostIncrement() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableShortValueUnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic final short shortValue()
shortValue in interface SealedShortValueshortValue in class Numbershortpublic final PRIMITIVE square() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE sum(boolean aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarsum in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>sum in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - an addendUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE sum(byte aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarsum in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>sum in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - an addendUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE sum(char aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarsum in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>sum in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - an addendUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE sum(short aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarsum in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>sum in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - an addendUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE swapPrimitives(Primitive<?> aPrimitive)
PrimitiveaPrimitive - the primitive to swap withpublic final Number toNumber()
Number
objectpublic String toString()
toString in interface CharSequencetoString in interface SealedKerneltoString in class Objectpublic final BigDecimal toUnlimitedDecimal()
decimal
property valuepublic final BigInteger toUnlimitedInteger()
integer
property valuepublic final BigDecimal unlimitedDecimalPostDecrement() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableUnlimitedDecimalValueUnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic final BigDecimal unlimitedDecimalPostIncrement() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableUnlimitedDecimalValueUnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic final BigInteger unlimitedIntegerPostDecrement() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableUnlimitedIntegerValueUnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic final BigInteger unlimitedIntegerPostIncrement() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableUnlimitedIntegerValueUnsupportedOperationException - if this object's value cannot be changedArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectIllegalArgumentException - if the new value was incommensurate with this object's
specificationpublic final PRIMITIVE xor(boolean aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarxor in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>xor in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - an integral boolean vectorUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE xor(byte aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarxor in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>xor in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - an integral boolean vectorUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE xor(char aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarxor in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>xor in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - an integral boolean vectorUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectpublic final PRIMITIVE xor(short aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalarxor in interface MutableScalar<PRIMITIVE extends Primitive<PRIMITIVE>>xor in class AbstractScalar<PRIMITIVE extends Primitive<PRIMITIVE>>aValue - an integral boolean vectorUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the new value was incommensurate with this object's
specificationArithmeticException - the new numeric value was incompatible with with algebraic
interpretation of this objectCopyright © 2006-2012 Ware-Squared Software Development. All Rights Reserved.