public final class Variant extends AbstractPrimitiveWrapper<Variant>
primitive
that adjusts its numeric
precision
, and hence its implementation, based on
the precision of function argumentsNaN, ONEI, ZERO_DOUBLE_LONG_BITS, ZERO_FLOAT_INT_BITS, ZEROI
Constructor and Description |
---|
Variant(BigDecimal aValue) |
Variant(BigInteger aValue) |
Variant(boolean aValue) |
Variant(byte aValue) |
Variant(char aValue) |
Variant(double aValue) |
Variant(E aValue) |
Variant(float aValue) |
Variant(int aValue) |
Variant(long aValue) |
Variant(Primitive<?>... targets) |
Variant(PrimitiveAction<Primitive<?>> aRealTranslator,
Primitive<?>... targets) |
Variant(short aValue) |
Variant(String aValue) |
Modifier and Type | Method and Description |
---|---|
Variant |
absoluteValue()
Replace the current value with the absolute value of itself
|
Variant |
and(BigInteger aValue)
Set this value to the bit and of the integral boolean
vector equivalent of this value and the specified integral boolean vector
|
Variant |
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
|
Variant |
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
|
Variant |
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
|
Variant |
and(int aValue)
Set this value to the bit and of the integral boolean
vector equivalent of this value and the specified integral boolean vector
|
Variant |
and(long aValue)
Set this value to the bit and of the integral boolean
vector equivalent of this value and the specified integral boolean vector
|
Variant |
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
|
Variant |
angleWith(double aValue)
Set this value to the angle formed by the rectangular coordinates given
by the current value, x, and the specified value, y.
|
Variant |
append(boolean aValue) |
Variant |
append(char c) |
Variant |
append(char[] content) |
Variant |
append(char[] content,
int contentIndex) |
Variant |
append(char[] content,
int contentIndex,
int contentLength) |
Variant |
append(CharSequence s) |
Variant |
append(CharSequence content,
int contentStartIndex) |
Variant |
append(CharSequence s,
int start,
int end) |
Variant |
append(double aValue) |
Variant |
append(float aValue) |
Variant |
append(int aValue) |
Variant |
append(long aValue) |
Variant |
append(Object aValue) |
Variant |
append(StringBuffer sb) |
Variant |
appendCodePoint(int codePoint) |
Variant |
arcCosine()
Replace the current value with its arc
cosine |
Variant |
arcSine()
Replace the current value with its arc
sine |
Variant |
arcTangent()
Replace the current value with its arc
tangent |
Variant |
assertDomain(Domain aDomain)
Attempt to convert the implementation
domain of this
structure to the closest available match for the proposed domain. |
Variant |
assertPrecision(NumericPrecision prec)
Convert the numeric
precision of this
implementation to the closest available match for the proposed precision. |
Variant |
base10Log()
Replace the current value with its base 10 logarithm
|
Variant |
copy()
Produce a replica of this object
|
Variant |
copyUsing(BigDecimal aValue)
Using this real as a factory, produce a new real of the
same type but initialized with the value specified
|
Variant |
copyUsing(BigInteger aValue)
Using this real as a factory, produce a new real of the
same type but initialized with the value specified
|
Variant |
copyUsing(boolean aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
Variant |
copyUsing(byte aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
Variant |
copyUsing(char aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
Variant |
copyUsing(double aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
Variant |
copyUsing(float aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
Variant |
copyUsing(int aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
Variant |
copyUsing(long aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
Variant |
copyUsing(short aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
Variant |
copyUsingPrimitive(SealedPrimitive<?> aValue)
Using this primitive as a factory, produce a new primitive of the same
type but initialized with the value specified
|
Variant |
copyUsingReal(SealedReal<?> aValue)
Using this real as a factory, produce a new real of the
same type but initialized with the value specified
|
Variant |
copyUsingScalar(SealedScalar<?> aValue)
Using this scalar as a factory, produce a new scalar of the
same type but initialized with the value specified
|
Variant |
copyUsingText(CharSequence aValue)
Using this primitive as a factory, produce a new primitive of the same
type but initialized with the value specified
|
Variant |
cosine()
Replace the current value, assumed to be an angle in radians, to its
cosine |
Variant |
cube()
Replace the current value with the cube of itself
|
Variant |
cubeRoot()
Replace the current value with the cube root of itself
|
Variant |
decrement()
Replace the current value with the current value minus unity (one)
|
Variant |
degrees()
Replace the current value, assumed to be an angle in radians, to its
equivalent angle in degrees
|
Variant |
delete(int start,
int end) |
Variant |
deleteCharAt(int anIndex) |
Variant |
difference(BigDecimal aValue)
Set the value of this scalar to the mathematical difference
between its current value and the specified value
|
Variant |
difference(BigInteger aValue)
Set the value of this scalar to the mathematical difference
between its current value and the specified value
|
Variant |
difference(boolean aValue)
Set the value of this scalar to the mathematical difference
between its current value and the specified value
|
Variant |
difference(byte aValue)
Set the value of this scalar to the mathematical difference
between its current value and the specified value
|
Variant |
difference(char aValue)
Set the value of this scalar to the mathematical difference
between its current value and the specified value
|
Variant |
difference(double aValue)
Set the value of this scalar to the mathematical difference
between its current value and the specified value
|
Variant |
difference(float aValue)
Set the value of this scalar to the mathematical difference
between its current value and the specified value
|
Variant |
difference(int aValue)
Set the value of this scalar to the mathematical difference
between its current value and the specified value
|
Variant |
difference(long aValue)
Set the value of this scalar to the mathematical difference
between its current value and the specified value
|
Variant |
difference(short aValue)
Set the value of this scalar to the mathematical difference
between its current value and the specified value
|
Variant |
exponential()
Replace the current value with e (Napier's constant) raised to the
current value (en)
|
Variant |
exponentialLessOne()
Replace the current value with e (Napier's constant) raised to the
current value, less 1 (en-1)
|
Variant |
gcd(BigInteger aValue)
Replace the current value with the greatest common denonimator between
this value and the specific one
|
Variant |
gcd(byte aValue)
Replace the current value with the greatest common factor between this
value and the specific one
|
Variant |
gcd(char aValue)
Replace the current value with the greatest common factor between this
value and the specific one
|
Variant |
gcd(int aValue)
Replace the current value with the greatest common factor between this
value and the specific one
|
Variant |
gcd(long aValue)
Replace the current value with the greatest common factor between this
value and the specific one
|
Variant |
gcd(short aValue)
Replace the current value with the greatest common factor between this
value and the specific one
|
PrimitiveAction<Primitive<?>> |
getRealTranslator() |
Primitive<?> |
getTarget() |
Variant |
hyperbolicCosine()
Replace the current value, assumed to be an angle in radians, to its
hyperbolic
cosine |
Variant |
hyperbolicSine()
Replace the current value, assumed to be an angle in radians, to its
hyperbolic
sine |
Variant |
hyperbolicTangent()
Replace the current value, assumed to be an angle in radians, to its
hyperbolic
tangent |
Variant |
increment()
Replace the current value with the current value plus unity (one)
|
Variant |
insert(int anIndex,
boolean aValue) |
Variant |
insert(int anIndex,
char aValue) |
Variant |
insert(int anIndex,
char[] content) |
Variant |
insert(int targetIndex,
char[] content,
int contentIndex,
int contentLength) |
Variant |
insert(int anIndex,
CharSequence content) |
Variant |
insert(int targetIndex,
CharSequence content,
int contentIndex) |
Variant |
insert(int targetIndex,
CharSequence content,
int contentStartIndex,
int contentEndIndexPlusOne) |
Variant |
insert(int anIndex,
double aValue) |
Variant |
insert(int anIndex,
float aValue) |
Variant |
insert(int anIndex,
int aValue) |
Variant |
insert(int anIndex,
long aValue) |
Variant |
insert(int anIndex,
Object aValue) |
Variant |
invalidate()
Replace the current value an invalid value such
INVALID if possible, otherwise replace it with zero |
Variant |
inverse()
Replace the current value its multiplicative inverse (
1/x ) |
boolean |
isConfigurable()
|
Variant |
lowerCase()
For text-based objects, convert all characters in the text to lower case.
|
Variant |
mod(BigDecimal aValue)
Set the value of this scalar to its current value modulo of the
specified value
|
Variant |
mod(BigInteger aValue)
Set the value of this scalar to its current value modulo of the
specified value
|
Variant |
mod(boolean aValue)
Set the value of this scalar to its current value modulo of the
specified value
|
Variant |
mod(byte aValue)
Set the value of this scalar to its current value modulo of the
specified value
|
Variant |
mod(char aValue)
Set the value of this scalar to its current value modulo of the
specified value
|
Variant |
mod(double aValue)
Set the value of this scalar to its current value modulo of the
specified value
|
Variant |
mod(float aValue)
Set the value of this scalar to its current value modulo of the
specified value
|
Variant |
mod(int aValue)
Set the value of this scalar to its current value modulo of the
specified value
|
Variant |
mod(long aValue)
Set the value of this scalar to its current value modulo of the
specified value
|
Variant |
mod(short aValue)
Set the value of this scalar to its current value modulo of the
specified value
|
Variant |
naturalLog()
Replace the current value with its base e (Napier's constant)
logarithm (loge(n))
|
Variant |
naturalLogPlusOne()
Replace the current value, plus 1, with its base e (Napier's
constant) logarithm (loge(n+1))
|
Variant |
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.
|
Variant |
not()
Replace the current integral binary vector with its one's
complement.
|
Variant |
or(BigInteger aValue)
Set this value to the bit or of the integral boolean vector
equivalent of this value and the specified integral boolean vector
|
Variant |
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
|
Variant |
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
|
Variant |
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
|
Variant |
or(int aValue)
Set this value to the bit or of the integral boolean vector
equivalent of this value and the specified integral boolean vector
|
Variant |
or(long aValue)
Set this value to the bit or of the integral boolean vector
equivalent of this value and the specified integral boolean vector
|
Variant |
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
|
Variant |
power(double n)
Set this value to the current value, x, raised to the specified
exponent, n, or xn
|
Variant |
power(int n)
Set this value to the current value, x, raised to the specified
exponent, n, or xn
|
Variant |
prepend(boolean aValue) |
Variant |
prepend(char aValue) |
Variant |
prepend(char[] content) |
Variant |
prepend(char[] content,
int contentIndex) |
Variant |
prepend(char[] content,
int contentIndex,
int contentLength) |
Variant |
prepend(CharSequence content) |
Variant |
prepend(CharSequence content,
int contentIndex) |
Variant |
prepend(CharSequence content,
int contentStartIndex,
int contentEndIndexPlusOne) |
Variant |
prepend(double aValue) |
Variant |
prepend(float aValue) |
Variant |
prepend(int aValue) |
Variant |
prepend(long aValue) |
Variant |
prepend(Object aValue) |
Variant |
product(BigDecimal aValue)
Set the value of this scalar to the mathematical product of its
current value and the specified value
|
Variant |
product(BigInteger aValue)
Set the value of this scalar to the mathematical product of its
current value and the specified value
|
Variant |
product(boolean aValue)
Set the value of this scalar to the mathematical product of its
current value and the specified value
|
Variant |
product(byte aValue)
Set the value of this scalar to the mathematical product of its
current value and the specified value
|
Variant |
product(char aValue)
Set the value of this scalar to the mathematical product of its
current value and the specified value
|
Variant |
product(double aValue)
Set the value of this scalar to the mathematical product of its
current value and the specified value
|
Variant |
product(float aValue)
Set the value of this scalar to the mathematical product of its
current value and the specified value
|
Variant |
product(int aValue)
Set the value of this scalar to the mathematical product of its
current value and the specified value
|
Variant |
product(long aValue)
Set the value of this scalar to the mathematical product of its
current value and the specified value
|
Variant |
product(short aValue)
Set the value of this scalar to the mathematical product of its
current value and the specified value
|
Variant |
promoteTo(NumericPrecision prec)
If this object's implementation is less
precise
than the specified numeric precision, then convert this implementation to
the closest available match for the proposed precision. |
Variant |
quotient(BigDecimal aValue)
Set the value of this scalar to the mathematical quotient between
its current value and the specified value
|
Variant |
quotient(BigInteger aValue)
Set the value of this scalar to the mathematical quotient between
its current value and the specified value
|
Variant |
quotient(boolean aValue)
Set the value of this scalar to the mathematical quotient between
its current value and the specified value
|
Variant |
quotient(byte aValue)
Set the value of this scalar to the mathematical quotient of its
current value and the specified value
|
Variant |
quotient(char aValue)
Set the value of this scalar to the mathematical quotient between
its current value and the specified value
|
Variant |
quotient(double aValue)
Set the value of this scalar to the mathematical quotient of its
current value and the specified value
|
Variant |
quotient(float aValue)
Set the value of this scalar to the mathematical quotient of its
current value and the specified value
|
Variant |
quotient(int aValue)
Set the value of this scalar to the mathematical quotient of its
current value and the specified value
|
Variant |
quotient(long aValue)
Set the value of this scalar to the mathematical quotient of its
current value and the specified value
|
Variant |
quotient(short aValue)
Set the value of this scalar to the mathematical quotient of its
current value and the specified value
|
Variant |
radians()
Replace the current value, assumed to be an angle in degrees, to its
equivalent angle in radians
|
Variant |
replace(CharSequence target,
CharSequence replacement) |
Variant |
replace(int start,
int end,
String str) |
Variant |
replaceAll(String regex,
String replacement) |
Variant |
replaceCharacter(char oldChar,
char newChar) |
Variant |
replaceFirst(String regex,
String replacement) |
Variant |
reverse() |
Variant |
round(RoundingStrategy aRoundingStrategy)
Round the current value using the specified rounding
strategy |
Variant |
setBoolean(Boolean aValue)
Set this property to the specified system-supported
Boolean and
answer this object (facilitates chaining) |
Variant |
setCharacter(Character aValue)
Set this property to the specified system-supported
Character and
answer this object (facilitates chaining) |
Variant |
setCharAt(int index,
char ch) |
Variant |
setE()
Replace the current value with e, or Napier's constant
|
<E extends Enum<E>> |
setEnumeration(E aValue)
Match the value of this object with the identity of the specified
enumeration instance, then answer this object (facilitates
chaining) |
Variant |
setFalse()
Set this property to its equivalent of
true and answer this
object (facilitates chaining) |
Variant |
setLength(int newLength) |
Variant |
setMaximum()
Replace the current value with maximum value available for the
implementation's numeric
precision . |
Variant |
setMinimum()
Replace the current value with minimum value available for the
implementation's numeric
precision . |
Variant |
setNegativeInfinity()
Replace the current value with a representation of negative infinity, if
available, otherwise replace with the implementation's
minimum value |
Variant |
setPi()
Replace the current value with Pi
|
Variant |
setPositiveInfinity()
Replace the current value with a representation of positive infinity, if
available, otherwise replace with the implementation's
maximum value |
Variant |
setReal(BigDecimal aValue)
Set this property to the specified unlimited
decimal
value and answer this object (facilitates chaining) |
Variant |
setReal(BigInteger aValue)
Set this property to the specified unlimited
integer
value and answer this object (facilitates chaining) |
Variant |
setReal(SealedReal<?> aValue)
Set this property to the specified numeric
primitive and answer this object (facilitates chaining) |
Variant |
setScalar(boolean aValue)
Set this property to the specified
boolean value and answer this
object (facilitates chaining) |
Variant |
setScalar(byte aValue)
Set this property to the specified
byte value and answer this
object (facilitates chaining) |
Variant |
setScalar(char aValue)
Set this property to the specified
char value and answer this
object (facilitates chaining) |
Variant |
setScalar(double aValue)
Set this property to the specified
double value and answer this
object (facilitates chaining) |
Variant |
setScalar(float aValue)
Set this property to the specified
float value and answer this
object (facilitates chaining) |
Variant |
setScalar(int aValue)
Set this property to the specified
int value and answer this
object (facilitates chaining) |
Variant |
setScalar(long aValue)
Set this property to the specified
long value and answer this
object (facilitates chaining) |
Variant |
setScalar(SealedScalar<?> aValue)
Set this object to the specified scalar
|
Variant |
setScalar(short aValue)
Set this property to the specified
short value and answer this
object (facilitates chaining) |
Variant |
setText(CharSequence content)
Set this property to the specified
text value and answer
this object (facilitates chaining) |
Variant |
setTrue()
Set this property to its equivalent of
true and answer this
object (facilitates chaining) |
Variant |
setUnity()
Replace the current value with the multiplicative identity appropriate
for the implementation (one)
|
Variant |
setZero()
Replace the current value with the additive identity appropriate for the
implementation (zero)
|
Variant |
shiftLeft(int count)
Attempt to shift the elements of this tuple to the "left" the specified
number of ordinal positions.
|
Variant |
shiftRight(int count)
Attempt to shift the elements of this tuple to the "right" the specified
number of ordinal positions.
|
Variant |
shiftRightExtendZero(int count)
Attempt to shift the elements of this tuple to the "right" the specified
number of ordinal positions without sign extension.
|
Variant |
sine()
Replace the current value, assumed to be an angle in radians, to its
sine |
Variant |
square()
Replace the current value with the square of itself
|
Variant |
squareRoot()
Replace the current value with the square root of itself
|
CharSequence |
subSequence(int start,
int end) |
String |
substring(int beginIndex) |
String |
substring(int beginIndex,
int endIndex) |
Variant |
sum(BigDecimal aValue)
Set the value of this scalar to the mathematical sum of its
current value and the specified value
|
Variant |
sum(BigInteger aValue)
Set the value of this scalar to the mathematical sum of its
current value and the specified value
|
Variant |
sum(boolean aValue)
Set the value of this scalar to the mathematical sum of its
current value and the specified value
|
Variant |
sum(byte aValue)
Set the value of this scalar to the mathematical sum of its
current value and the specified value
|
Variant |
sum(char aValue)
Set the value of this scalar to the mathematical sum of its
current value and the specified value
|
Variant |
sum(double aValue)
Set the value of this scalar to the mathematical sum of its
current value and the specified value
|
Variant |
sum(float aValue)
Set the value of this scalar to the mathematical sum of its
current value and the specified value
|
Variant |
sum(int aValue)
Set the value of this scalar to the mathematical sum of its
current value and the specified value
|
Variant |
sum(long aValue)
Set the value of this scalar to the mathematical sum of its
current value and the specified value
|
Variant |
sum(short aValue)
Set the value of this scalar to the mathematical sum of its
current value and the specified value
|
Variant |
swapPrimitives(Primitive<?> aValue)
Swap the value of this primitive for the specified one and set the
specified primitive's value to the current value of this primitive
|
Variant |
tangent()
Replace the current value, assumed to be an angle in radians, to its
tangent |
static Primitive<?> |
toPrimitive(Number aNumber) |
static Primitive<?> |
toPrimitive(NumericPrecision prec) |
static Primitive<?> |
toPrimitive(SealedReal<?> aReal) |
static Primitive<?> |
toPrimitive(SealedScalar<?> aScalar) |
Variant |
upperCase()
For text-based objects, convert all characters in the text to upper case.
|
static Variant |
valueOfPrimitive(SealedPrimitive<?> aValue) |
static Variant |
valueOfReal(SealedReal<?> aReal) |
static Variant |
valueOfScalar(SealedScalar<?> aScalar) |
Variant |
xor(BigInteger aValue)
Set this value to the bit exclusive-or of the integral
boolean vector equivalent of this value and the specified integral
boolean vector
|
Variant |
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
|
Variant |
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
|
Variant |
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
|
Variant |
xor(int aValue)
Set this value to the bit exclusive-or of the integral
boolean vector equivalent of this value and the specified integral
boolean vector
|
Variant |
xor(long aValue)
Set this value to the bit exclusive-or of the integral
boolean vector equivalent of this value and the specified integral
boolean vector
|
Variant |
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
|
booleanPostDecrement, booleanPostIncrement, booleanValue, bytePostDecrement, bytePostIncrement, byteValue, charAt, charPostDecrement, charPostIncrement, charValue, clear, clearContents, clearText, codePointAt, codePointBefore, codePointCount, compareTo, compareToPrimitive, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToText, compareToZero, doublePostDecrement, doublePostIncrement, doubleValue, equals, floatPostDecrement, floatPostIncrement, floatValue, getConcurrency, getDomain, getPrecision, getStructureStrategy, hashCode, indexOfText, indexOfText, inducePostDecrement, inducePostDecrement, inducePostDecrement, inducePostIncrement, inducePostIncrement, inducePostIncrement, inducePrimitiveMaximum, inducePrimitiveMinimum, inducePrimitiveValue, induceRealMaximum, induceRealMinimum, induceRealSize, induceRealValue, induceScalarMaximum, induceScalarMinimum, induceScalarSize, induceScalarValue, induceTextSize, induceTextValue, intPostDecrement, intPostIncrement, intValue, isAlphabetic, isBmpCodePoint, isCountable, isDigit, isElastic, isEmpty, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqualToPrimitive, isEqualToText, isExpandable, isFinite, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqualToPrimitive, isGreaterOrEqualToText, isGreaterThanPrimitive, isGreaterThanText, isHighSurrogate, isIdentifierIgnorable, isIdeographic, isImaginary, isInfinity, isInvalid, isISOControl, isJavaIdentifierPart, isJavaIdentifierStart, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqualToPrimitive, isLessOrEqualToText, isLessThanPrimitive, isLessThanText, isLetter, isLetterOrDigit, isLowerCase, isLowSurrogate, isMaximum, isMinimum, isMirrored, isModulo, isMutable, isNegative, isNegativeFinite, isNegativeInfinity, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqualToPrimitive, isNotEqualToText, isOrdered, isPositive, isPositiveFinite, isPositiveInfinity, isReal, isReducible, isSupplementaryCodePoint, isSurrogate, isText, isTitleCase, isUnicode, isUnicodeIdentifierPart, isUnicodeIdentifierStart, isUnique, isUnity, isUpperCase, isValidCodePoint, isWhitespace, isZero, length, longPostDecrement, longPostIncrement, longSize, longValue, milliseconds, nanoseconds, random, setPrimitive, shortPostDecrement, shortPostIncrement, shortValue, signum, size, textPostDecrement, textPostIncrement, titleCase, toBoolean, toCharacter, toCodePoint, toEnumeration, toNumber, toPrimitive, toReal, toScalar, toString, toUnlimitedDecimal, toUnlimitedInteger, trim, unlimitedDecimalPostDecrement, unlimitedDecimalPostIncrement, unlimitedIntegerPostDecrement, unlimitedIntegerPostIncrement
andOfPrimitive, angleWithPrimitive, differenceOfPrimitive, hypotenuseWithPrimitive, modOfPrimitive, orOfPrimitive, powerOfPrimitive, productOfPrimitive, quotientOfPrimitive, sumOfPrimitive, xorOfPrimitive
andOfNumber, andOfReal, angleWithReal, compareToNumber, compareToReal, compareToReal, compareToReal, differenceOfNumber, differenceOfReal, gcdOfNumber, gcdOfReal, hypotenuseWithReal, isEqualToNumber, isEqualToReal, isGreaterOrEqualToNumber, isGreaterOrEqualToReal, isGreaterThanNumber, isGreaterThanReal, isLessOrEqualToNumber, isLessOrEqualToReal, isLessThanNumber, isLessThanReal, isNotEqualToNumber, isNotEqualToReal, modOfNumber, modOfReal, orOfNumber, orOfReal, powerOfReal, productOfNumber, productOfReal, quotientOfNumber, quotientOfReal, setNumber, sumOfNumber, sumOfReal, unlimitedIntegerModularInverse, xorOfNumber, xorOfReal
andOfScalar, angleWithNumber, angleWithScalar, 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, differenceOfScalar, divideByZero, down, floor, gcdOfScalar, getBooleanBitAt, getByteBitAt, getCharBitAt, getDoubleBitAt, getFloatBitAt, getIntBitAt, getLongBitAt, getShortBitAt, getUnlimitedDecimalBitAt, getUnlimitedIntegerBitAt, halfDown, halfEven, halfUp, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hypotenuseWith, hypotenuseWithNumber, hypotenuseWithScalar, indexOutOfBoundsAt, intGCD, intMaskAt, intModularInverse, intModularQuotient, intNotMaskAt, intValue, isEqualToScalar, isFalse, isGreaterOrEqualToScalar, isGreaterThanScalar, isLessOrEqualToScalar, isLessThanScalar, isNotEqualToScalar, isTrue, isValid, longGCD, longMaskAt, longModularInverse, longModularQuotient, longNotMaskAt, longValue, modOfScalar, orOfScalar, powerOfNumber, powerOfScalar, productOfScalar, quotientOfScalar, setByteBitAt, setCharBitAt, setDoubleBitAt, setFloatBitAt, setIntBitAt, setLongBitAt, setShortBitAt, setUnlimitedDecimalBitAt, setUnlimitedIntegerBitAt, shortMaskAt, shortNotMaskAt, shortValue, sumOfScalar, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toByteArray, toUnlimitedInteger, unlimitedIntegerMaskAt, unlimitedIntegerNotMaskAt, up, xorOfScalar
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
andOfPrimitive, angleWithPrimitive, differenceOfPrimitive, hypotenuseWithPrimitive, modOfPrimitive, orOfPrimitive, powerOfPrimitive, productOfPrimitive, quotientOfPrimitive, sumOfPrimitive, xorOfPrimitive
compareToReal, compareToReal, compareToReal, isEqualToReal, isGreaterOrEqualToReal, isGreaterThanReal, isLessOrEqualToReal, isLessThanReal, isNotEqualToReal
compareToNumber, compareToScalar, isEqualToNumber, isEqualToScalar, isFalse, isGreaterOrEqualToNumber, isGreaterOrEqualToScalar, isGreaterThanNumber, isGreaterThanScalar, isLessOrEqualToNumber, isLessOrEqualToScalar, isLessThanNumber, isLessThanScalar, isNotEqualToNumber, isNotEqualToScalar, isTrue
isValid
andOfReal, angleWithReal, differenceOfReal, gcdOfReal, hypotenuseWithReal, modOfReal, orOfReal, powerOfReal, productOfReal, quotientOfReal, sumOfReal, xorOfReal
andOfNumber, andOfScalar, angleWithNumber, angleWithScalar, ceiling, differenceOfNumber, differenceOfScalar, down, floor, gcdOfNumber, gcdOfScalar, halfDown, halfEven, halfUp, hypotenuseWith, hypotenuseWithNumber, hypotenuseWithScalar, modOfNumber, modOfScalar, orOfNumber, orOfScalar, powerOfNumber, powerOfScalar, productOfNumber, productOfScalar, quotientOfNumber, quotientOfScalar, setNumber, sumOfNumber, sumOfScalar, up, xorOfNumber, xorOfScalar
public Variant(BigDecimal aValue)
public Variant(BigInteger aValue)
public Variant(boolean aValue)
public Variant(byte aValue)
public Variant(char aValue)
public Variant(double aValue)
public Variant(E aValue)
public Variant(float aValue)
public Variant(int aValue)
public Variant(long aValue)
public Variant(PrimitiveAction<Primitive<?>> aRealTranslator, Primitive<?>... targets)
public Variant(short aValue)
public final Variant absoluteValue() throws UnsupportedOperationException
MutableScalar
absoluteValue
in interface MutableScalar<Variant>
absoluteValue
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
- if this object's value cannot be changedpublic final Variant and(BigInteger aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
and
in interface MutableReal<Variant>
and
in class AbstractPrimitiveWrapper<Variant>
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 Variant and(boolean aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
and
in interface MutableScalar<Variant>
and
in class AbstractPrimitiveWrapper<Variant>
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 Variant and(byte aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
and
in interface MutableScalar<Variant>
and
in class AbstractPrimitiveWrapper<Variant>
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 Variant and(char aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
and
in interface MutableScalar<Variant>
and
in class AbstractPrimitiveWrapper<Variant>
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 Variant and(int aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
and
in interface MutableScalar<Variant>
and
in class AbstractPrimitiveWrapper<Variant>
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 Variant and(long aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
and
in interface MutableScalar<Variant>
and
in class AbstractPrimitiveWrapper<Variant>
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 Variant and(short aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
and
in interface MutableScalar<Variant>
and
in class AbstractPrimitiveWrapper<Variant>
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 Variant angleWith(double aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
angleWith
in interface MutableScalar<Variant>
angleWith
in class AbstractPrimitiveWrapper<Variant>
aValue
- a y coordinate valueUnsupportedOperationException
- 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 objectMath.atan2(double, double)
public final Variant append(boolean aValue) throws UnsupportedOperationException
append
in interface MutableTextValue<Variant>
append
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant append(char c) throws UnsupportedOperationException
append
in interface Appendable
append
in interface MutableTextValue<Variant>
append
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant append(char[] content) throws UnsupportedOperationException
append
in interface MutableTextValue<Variant>
append
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant append(char[] content, int contentIndex) throws UnsupportedOperationException
append
in interface MutableTextValue<Variant>
append
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant append(char[] content, int contentIndex, int contentLength) throws UnsupportedOperationException
append
in interface MutableTextValue<Variant>
append
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant append(CharSequence s) throws UnsupportedOperationException
append
in interface Appendable
append
in interface MutableTextValue<Variant>
append
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant append(CharSequence content, int contentStartIndex) throws UnsupportedOperationException
append
in interface MutableTextValue<Variant>
append
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant append(CharSequence s, int start, int end) throws UnsupportedOperationException
append
in interface Appendable
append
in interface MutableTextValue<Variant>
append
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant append(double aValue) throws UnsupportedOperationException
append
in interface MutableTextValue<Variant>
append
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant append(float aValue) throws UnsupportedOperationException
append
in interface MutableTextValue<Variant>
append
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant append(int aValue) throws UnsupportedOperationException
append
in interface MutableTextValue<Variant>
append
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant append(long aValue) throws UnsupportedOperationException
append
in interface MutableTextValue<Variant>
append
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant append(Object aValue) throws UnsupportedOperationException
append
in interface MutableTextValue<Variant>
append
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant append(StringBuffer sb) throws UnsupportedOperationException
append
in interface MutableTextValue<Variant>
append
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant appendCodePoint(int codePoint) throws UnsupportedOperationException
appendCodePoint
in interface MutableTextValue<Variant>
appendCodePoint
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant arcCosine() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
cosine
arcCosine
in interface MutableScalar<Variant>
arcCosine
in class AbstractPrimitiveWrapper<Variant>
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 Variant arcSine() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
sine
arcSine
in interface MutableScalar<Variant>
arcSine
in class AbstractPrimitiveWrapper<Variant>
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 Variant arcTangent() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
tangent
arcTangent
in interface MutableScalar<Variant>
arcTangent
in class AbstractPrimitiveWrapper<Variant>
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 Variant assertDomain(Domain aDomain)
MutableAlgebraicStructure
domain
of this
structure to the closest available match for the proposed domain. Note
that the domain of this implementation may not change as a result
of calling this function if an available internal conversion is not
available.assertDomain
in interface MutableAlgebraicStructure<Variant>
assertDomain
in class AbstractPrimitiveWrapper<Variant>
aDomain
- the proposed domainthis
object (facilitates operation chaining)StructureProperties.isConfigurable()
public final Variant assertPrecision(NumericPrecision prec)
MutableScalarDomain
precision
of this
implementation to the closest available match for the proposed precision.
Note that the precision of this implementation may not change as a
result of calling this function if this structure is not configurable.assertPrecision
in interface MutableScalarDomain<Variant>
assertPrecision
in class AbstractPrimitiveWrapper<Variant>
prec
- the proposed precisionthis
object (facilitates operation chaining)public final Variant base10Log() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
base10Log
in interface MutableScalar<Variant>
base10Log
in class AbstractPrimitiveWrapper<Variant>
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 Variant copy()
Replicator
public final Variant copyUsing(BigDecimal aValue)
RealReplicator
aValue
- a new valuepublic final Variant copyUsing(BigInteger aValue)
RealReplicator
aValue
- a new valuepublic final Variant copyUsing(boolean aValue)
ScalarReplicator
aValue
- a new valuepublic final Variant copyUsing(byte aValue)
ScalarReplicator
aValue
- a new valuepublic final Variant copyUsing(char aValue)
ScalarReplicator
aValue
- a new valuepublic final Variant copyUsing(double aValue)
ScalarReplicator
aValue
- a new valuepublic final Variant copyUsing(float aValue)
ScalarReplicator
aValue
- a new valuepublic final Variant copyUsing(int aValue)
ScalarReplicator
aValue
- a new valuepublic final Variant copyUsing(long aValue)
ScalarReplicator
aValue
- a new valuepublic final Variant copyUsing(short aValue)
ScalarReplicator
aValue
- a new valuepublic final Variant copyUsingPrimitive(SealedPrimitive<?> aValue)
PrimitiveReplicator
aValue
- a new valuepublic final Variant copyUsingReal(SealedReal<?> aValue)
RealReplicator
aValue
- a new valuepublic final Variant copyUsingScalar(SealedScalar<?> aValue)
ScalarReplicator
aValue
- a new valuepublic final Variant copyUsingText(CharSequence aValue)
PrimitiveReplicator
aValue
- a new valuepublic final Variant cosine() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
cosine
cosine
in interface MutableScalar<Variant>
cosine
in class AbstractPrimitiveWrapper<Variant>
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 Variant cube() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
cube
in interface MutableScalar<Variant>
cube
in class AbstractPrimitiveWrapper<Variant>
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 Variant cubeRoot() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
cubeRoot
in interface MutableScalar<Variant>
cubeRoot
in class AbstractPrimitiveWrapper<Variant>
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 Variant decrement() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
decrement
in interface MutableScalar<Variant>
decrement
in class AbstractPrimitiveWrapper<Variant>
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 Variant degrees() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
degrees
in interface MutableScalar<Variant>
degrees
in class AbstractPrimitiveWrapper<Variant>
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 Variant delete(int start, int end) throws UnsupportedOperationException
delete
in interface MutableTextValue<Variant>
delete
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant deleteCharAt(int anIndex) throws UnsupportedOperationException
deleteCharAt
in interface MutableTextValue<Variant>
deleteCharAt
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant difference(BigDecimal aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
difference
in interface MutableReal<Variant>
difference
in class AbstractPrimitiveWrapper<Variant>
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 Variant difference(BigInteger aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
difference
in interface MutableReal<Variant>
difference
in class AbstractPrimitiveWrapper<Variant>
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 Variant difference(boolean aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
difference
in interface MutableScalar<Variant>
difference
in class AbstractPrimitiveWrapper<Variant>
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 Variant difference(byte aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
difference
in interface MutableScalar<Variant>
difference
in class AbstractPrimitiveWrapper<Variant>
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 Variant difference(char aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
difference
in interface MutableScalar<Variant>
difference
in class AbstractPrimitiveWrapper<Variant>
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 Variant difference(double aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
difference
in interface MutableScalar<Variant>
difference
in class AbstractPrimitiveWrapper<Variant>
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 Variant difference(float aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
difference
in interface MutableScalar<Variant>
difference
in class AbstractPrimitiveWrapper<Variant>
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 Variant difference(int aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
difference
in interface MutableScalar<Variant>
difference
in class AbstractPrimitiveWrapper<Variant>
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 Variant difference(long aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
difference
in interface MutableScalar<Variant>
difference
in class AbstractPrimitiveWrapper<Variant>
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 Variant difference(short aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
difference
in interface MutableScalar<Variant>
difference
in class AbstractPrimitiveWrapper<Variant>
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 Variant exponential() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
exponential
in interface MutableScalar<Variant>
exponential
in class AbstractPrimitiveWrapper<Variant>
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 Variant exponentialLessOne() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
exponentialLessOne
in interface MutableScalar<Variant>
exponentialLessOne
in class AbstractPrimitiveWrapper<Variant>
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 Variant gcd(BigInteger aValue) throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableReal
gcd
in interface MutableReal<Variant>
gcd
in class AbstractPrimitiveWrapper<Variant>
aValue
- a valueUnsupportedOperationException
- 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 Variant gcd(byte aValue) throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableScalar
gcd
in interface MutableScalar<Variant>
gcd
in class AbstractPrimitiveWrapper<Variant>
aValue
- a valueUnsupportedOperationException
- 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 Variant gcd(char aValue) throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableScalar
gcd
in interface MutableScalar<Variant>
gcd
in class AbstractPrimitiveWrapper<Variant>
aValue
- a valueUnsupportedOperationException
- 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 Variant gcd(int aValue) throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableScalar
gcd
in interface MutableScalar<Variant>
gcd
in class AbstractPrimitiveWrapper<Variant>
aValue
- a valueUnsupportedOperationException
- 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 Variant gcd(long aValue) throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableScalar
gcd
in interface MutableScalar<Variant>
gcd
in class AbstractPrimitiveWrapper<Variant>
aValue
- a valueUnsupportedOperationException
- 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 Variant gcd(short aValue) throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableScalar
gcd
in interface MutableScalar<Variant>
gcd
in class AbstractPrimitiveWrapper<Variant>
aValue
- a valueUnsupportedOperationException
- 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 PrimitiveAction<Primitive<?>> getRealTranslator()
public final Primitive<?> getTarget()
getTarget
in class AbstractPrimitiveWrapper<Variant>
public final Variant hyperbolicCosine() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
cosine
hyperbolicCosine
in interface MutableScalar<Variant>
hyperbolicCosine
in class AbstractPrimitiveWrapper<Variant>
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 Variant hyperbolicSine() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
sine
hyperbolicSine
in interface MutableScalar<Variant>
hyperbolicSine
in class AbstractPrimitiveWrapper<Variant>
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 Variant hyperbolicTangent() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
tangent
hyperbolicTangent
in interface MutableScalar<Variant>
hyperbolicTangent
in class AbstractPrimitiveWrapper<Variant>
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 Variant increment() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableScalar
increment
in interface MutableScalar<Variant>
increment
in class AbstractPrimitiveWrapper<Variant>
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 Variant insert(int anIndex, boolean aValue) throws UnsupportedOperationException
insert
in interface MutableTextValue<Variant>
insert
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant insert(int anIndex, char aValue) throws UnsupportedOperationException
insert
in interface MutableTextValue<Variant>
insert
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant insert(int anIndex, char[] content) throws UnsupportedOperationException
insert
in interface MutableTextValue<Variant>
insert
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant insert(int targetIndex, char[] content, int contentIndex, int contentLength) throws UnsupportedOperationException
insert
in interface MutableTextValue<Variant>
insert
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant insert(int anIndex, CharSequence content) throws UnsupportedOperationException
insert
in interface MutableTextValue<Variant>
insert
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant insert(int targetIndex, CharSequence content, int contentIndex) throws UnsupportedOperationException
insert
in interface MutableTextValue<Variant>
insert
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant insert(int targetIndex, CharSequence content, int contentStartIndex, int contentEndIndexPlusOne) throws UnsupportedOperationException
insert
in interface MutableTextValue<Variant>
insert
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant insert(int anIndex, double aValue) throws UnsupportedOperationException
insert
in interface MutableTextValue<Variant>
insert
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant insert(int anIndex, float aValue) throws UnsupportedOperationException
insert
in interface MutableTextValue<Variant>
insert
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant insert(int anIndex, int aValue) throws UnsupportedOperationException
insert
in interface MutableTextValue<Variant>
insert
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant insert(int anIndex, long aValue) throws UnsupportedOperationException
insert
in interface MutableTextValue<Variant>
insert
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant insert(int anIndex, Object aValue) throws UnsupportedOperationException
insert
in interface MutableTextValue<Variant>
insert
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant invalidate() throws UnsupportedOperationException
MutableScalar
INVALID
if possible, otherwise replace it with zeroinvalidate
in interface MutableScalar<Variant>
invalidate
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
- if this object's value cannot be changedpublic final Variant inverse() throws UnsupportedOperationException
MutableScalar
1/x
)inverse
in interface MutableScalar<Variant>
inverse
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
- if this object's value cannot be changedpublic boolean isConfigurable()
StructureProperties
true
if the implementation of this object can be changed.expanded
, or reduced
, or has replaceable
components. Configurable structures are necessarily
mutable
; in fact, "configurability" can be
used as a strict definition of mutability. This predicate however
overrides #isMutable
in the respect that, for some types of
objects such as Variants
, mutability can be changed by
switching from a non-mutable implementation to a mutable one (e.g., via
assertPrecision
).isConfigurable
in interface StructureProperties
isConfigurable
in class AbstractPrimitiveWrapper<Variant>
true
if the implementation of this object can be changedpublic final Variant lowerCase() throws UnsupportedOperationException
MutableTextValue
lowerCase
in interface MutableTextValue<Variant>
lowerCase
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant mod(BigDecimal aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
mod
in interface MutableReal<Variant>
mod
in class AbstractPrimitiveWrapper<Variant>
aValue
- a modulusUnsupportedOperationException
- 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 Variant mod(BigInteger aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
mod
in interface MutableReal<Variant>
mod
in class AbstractPrimitiveWrapper<Variant>
aValue
- a modulusUnsupportedOperationException
- 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 Variant mod(boolean aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
mod
in interface MutableScalar<Variant>
mod
in class AbstractPrimitiveWrapper<Variant>
aValue
- a modulusUnsupportedOperationException
- 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 Variant mod(byte aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
mod
in interface MutableScalar<Variant>
mod
in class AbstractPrimitiveWrapper<Variant>
aValue
- a modulusUnsupportedOperationException
- 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 Variant mod(char aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
mod
in interface MutableScalar<Variant>
mod
in class AbstractPrimitiveWrapper<Variant>
aValue
- a modulusUnsupportedOperationException
- 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 Variant mod(double aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
mod
in interface MutableScalar<Variant>
mod
in class AbstractPrimitiveWrapper<Variant>
aValue
- a modulusUnsupportedOperationException
- 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 Variant mod(float aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
mod
in interface MutableScalar<Variant>
mod
in class AbstractPrimitiveWrapper<Variant>
aValue
- a modulusUnsupportedOperationException
- 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 Variant mod(int aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
mod
in interface MutableScalar<Variant>
mod
in class AbstractPrimitiveWrapper<Variant>
aValue
- a modulusUnsupportedOperationException
- 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 Variant mod(long aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
mod
in interface MutableScalar<Variant>
mod
in class AbstractPrimitiveWrapper<Variant>
aValue
- a modulusUnsupportedOperationException
- 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 Variant mod(short aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
mod
in interface MutableScalar<Variant>
mod
in class AbstractPrimitiveWrapper<Variant>
aValue
- a modulusUnsupportedOperationException
- 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 Variant naturalLog() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
naturalLog
in interface MutableScalar<Variant>
naturalLog
in class AbstractPrimitiveWrapper<Variant>
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 Variant naturalLogPlusOne() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
naturalLogPlusOne
in interface MutableScalar<Variant>
naturalLogPlusOne
in class AbstractPrimitiveWrapper<Variant>
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 Variant negate() throws UnsupportedOperationException
MutableScalar
boolean
and char
values do not exist, these
implementations will simply fail silently.)negate
in interface MutableScalar<Variant>
negate
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
- if this object's value cannot be changedpublic final Variant not() throws UnsupportedOperationException
MutableScalar
double
, will be first
converted to unlimited integers
before their bits are
reversed.not
in interface MutableScalar<Variant>
not
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
- if this object's value cannot be changedpublic final Variant or(BigInteger aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
or
in interface MutableReal<Variant>
or
in class AbstractPrimitiveWrapper<Variant>
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 Variant or(boolean aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
or
in interface MutableScalar<Variant>
or
in class AbstractPrimitiveWrapper<Variant>
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 Variant or(byte aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
or
in interface MutableScalar<Variant>
or
in class AbstractPrimitiveWrapper<Variant>
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 Variant or(char aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
or
in interface MutableScalar<Variant>
or
in class AbstractPrimitiveWrapper<Variant>
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 Variant or(int aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
or
in interface MutableScalar<Variant>
or
in class AbstractPrimitiveWrapper<Variant>
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 Variant or(long aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
or
in interface MutableScalar<Variant>
or
in class AbstractPrimitiveWrapper<Variant>
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 Variant or(short aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
or
in interface MutableScalar<Variant>
or
in class AbstractPrimitiveWrapper<Variant>
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 Variant power(double n) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
power
in interface MutableScalar<Variant>
power
in class AbstractPrimitiveWrapper<Variant>
n
- an exponentUnsupportedOperationException
- 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 Variant power(int n) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
power
in interface MutableScalar<Variant>
power
in class AbstractPrimitiveWrapper<Variant>
n
- an exponentUnsupportedOperationException
- 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 Variant prepend(boolean aValue) throws UnsupportedOperationException
prepend
in interface MutableTextValue<Variant>
prepend
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant prepend(char aValue) throws UnsupportedOperationException
prepend
in interface MutableTextValue<Variant>
prepend
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant prepend(char[] content) throws UnsupportedOperationException
prepend
in interface MutableTextValue<Variant>
prepend
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant prepend(char[] content, int contentIndex) throws UnsupportedOperationException
prepend
in interface MutableTextValue<Variant>
prepend
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant prepend(char[] content, int contentIndex, int contentLength) throws UnsupportedOperationException
prepend
in interface MutableTextValue<Variant>
prepend
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant prepend(CharSequence content) throws UnsupportedOperationException
prepend
in interface MutableTextValue<Variant>
prepend
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant prepend(CharSequence content, int contentIndex) throws UnsupportedOperationException
prepend
in interface MutableTextValue<Variant>
prepend
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant prepend(CharSequence content, int contentStartIndex, int contentEndIndexPlusOne) throws UnsupportedOperationException
prepend
in interface MutableTextValue<Variant>
prepend
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant prepend(double aValue) throws UnsupportedOperationException
prepend
in interface MutableTextValue<Variant>
prepend
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant prepend(float aValue) throws UnsupportedOperationException
prepend
in interface MutableTextValue<Variant>
prepend
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant prepend(int aValue) throws UnsupportedOperationException
prepend
in interface MutableTextValue<Variant>
prepend
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant prepend(long aValue) throws UnsupportedOperationException
prepend
in interface MutableTextValue<Variant>
prepend
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant prepend(Object aValue) throws UnsupportedOperationException
prepend
in interface MutableTextValue<Variant>
prepend
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant product(BigDecimal aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
product
in interface MutableReal<Variant>
product
in class AbstractPrimitiveWrapper<Variant>
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 Variant product(BigInteger aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
product
in interface MutableReal<Variant>
product
in class AbstractPrimitiveWrapper<Variant>
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 Variant product(boolean aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
product
in interface MutableScalar<Variant>
product
in class AbstractPrimitiveWrapper<Variant>
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 Variant product(byte aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
product
in interface MutableScalar<Variant>
product
in class AbstractPrimitiveWrapper<Variant>
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 Variant product(char aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
product
in interface MutableScalar<Variant>
product
in class AbstractPrimitiveWrapper<Variant>
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 Variant product(double aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
product
in interface MutableScalar<Variant>
product
in class AbstractPrimitiveWrapper<Variant>
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 Variant product(float aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
product
in interface MutableScalar<Variant>
product
in class AbstractPrimitiveWrapper<Variant>
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 Variant product(int aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
product
in interface MutableScalar<Variant>
product
in class AbstractPrimitiveWrapper<Variant>
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 Variant product(long aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
product
in interface MutableScalar<Variant>
product
in class AbstractPrimitiveWrapper<Variant>
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 Variant product(short aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
product
in interface MutableScalar<Variant>
product
in class AbstractPrimitiveWrapper<Variant>
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 Variant promoteTo(NumericPrecision prec)
MutableScalarDomain
precise
than the specified numeric precision, then convert this implementation to
the closest available match for the proposed precision. Note that the
precision of this implementation may not change as a result of
calling this function if the proposed precision is less precise than the
this object's current precision level or if this structure is not
{@link StructureProperties#isConfigurable() configurable).promoteTo
in interface MutableScalarDomain<Variant>
promoteTo
in class AbstractPrimitiveWrapper<Variant>
prec
- the proposed precisionthis
object (facilitates operation chaining)StructureProperties.isConfigurable()
public final Variant quotient(BigDecimal aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
quotient
in interface MutableReal<Variant>
quotient
in class AbstractPrimitiveWrapper<Variant>
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 Variant quotient(BigInteger aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
quotient
in interface MutableReal<Variant>
quotient
in class AbstractPrimitiveWrapper<Variant>
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 Variant quotient(boolean aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
quotient
in interface MutableScalar<Variant>
quotient
in class AbstractPrimitiveWrapper<Variant>
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 Variant quotient(byte aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
quotient
in interface MutableScalar<Variant>
quotient
in class AbstractPrimitiveWrapper<Variant>
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 Variant quotient(char aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
quotient
in interface MutableScalar<Variant>
quotient
in class AbstractPrimitiveWrapper<Variant>
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 Variant quotient(double aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
quotient
in interface MutableScalar<Variant>
quotient
in class AbstractPrimitiveWrapper<Variant>
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 Variant quotient(float aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
quotient
in interface MutableScalar<Variant>
quotient
in class AbstractPrimitiveWrapper<Variant>
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 Variant quotient(int aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
quotient
in interface MutableScalar<Variant>
quotient
in class AbstractPrimitiveWrapper<Variant>
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 Variant quotient(long aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
quotient
in interface MutableScalar<Variant>
quotient
in class AbstractPrimitiveWrapper<Variant>
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 Variant quotient(short aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
quotient
in interface MutableScalar<Variant>
quotient
in class AbstractPrimitiveWrapper<Variant>
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 Variant radians() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
radians
in interface MutableScalar<Variant>
radians
in class AbstractPrimitiveWrapper<Variant>
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 Variant replace(CharSequence target, CharSequence replacement)
replace
in interface MutableTextValue<Variant>
replace
in class AbstractPrimitiveWrapper<Variant>
public final Variant replace(int start, int end, String str) throws UnsupportedOperationException
replace
in interface MutableTextValue<Variant>
replace
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant replaceAll(String regex, String replacement)
replaceAll
in interface MutableTextValue<Variant>
replaceAll
in class AbstractPrimitiveWrapper<Variant>
public final Variant replaceCharacter(char oldChar, char newChar)
replaceCharacter
in interface MutableTextValue<Variant>
replaceCharacter
in class AbstractPrimitiveWrapper<Variant>
public final Variant replaceFirst(String regex, String replacement)
replaceFirst
in interface MutableTextValue<Variant>
replaceFirst
in class AbstractPrimitiveWrapper<Variant>
public final Variant reverse() throws UnsupportedOperationException
reverse
in interface MutableTextValue<Variant>
reverse
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant round(RoundingStrategy aRoundingStrategy) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException, NullPointerException
MutableScalar
strategy
round
in interface MutableScalar<Variant>
round
in class AbstractPrimitiveWrapper<Variant>
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 objectNullPointerException
public final Variant setBoolean(Boolean aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException, NullPointerException
MutablePrimitive
Boolean
and
answer this object (facilitates chaining)setBoolean
in interface MutablePrimitive<Variant>
setBoolean
in class AbstractPrimitiveWrapper<Variant>
aValue
- a system-supported Boolean
UnsupportedOperationException
- 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 Variant setCharacter(Character aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException, NullPointerException
MutablePrimitive
Character
and
answer this object (facilitates chaining)setCharacter
in interface MutablePrimitive<Variant>
setCharacter
in class AbstractPrimitiveWrapper<Variant>
aValue
- a system-supported Character
UnsupportedOperationException
- 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 Variant setCharAt(int index, char ch) throws UnsupportedOperationException
setCharAt
in interface MutableTextValue<Variant>
setCharAt
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant setE() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
setE
in interface MutableScalar<Variant>
setE
in class AbstractPrimitiveWrapper<Variant>
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 <E extends Enum<E>> Variant setEnumeration(E aValue) throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException, NullPointerException
MutableScalar
enumeration
instance, then answer this object (facilitates
chaining)setEnumeration
in interface MutableScalar<Variant>
setEnumeration
in class AbstractPrimitiveWrapper<Variant>
aValue
- a system-supported enumeration
UnsupportedOperationException
- if this object's value cannot be changedArithmeticException
- the numeric value provided was incompatible with with algebraic
interpretation of this objectIllegalArgumentException
- if the specified value was incommensurate with this object's
specificationNullPointerException
- a null
value was provided though this object does not
accept null
valuespublic final Variant setFalse() throws UnsupportedOperationException, ArithmeticException
MutableBooleanValue
true
and answer this
object (facilitates chaining)setFalse
in interface MutableBooleanValue<Variant>
setFalse
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
- if this object's value cannot be changedArithmeticException
- the new value was incompatible with with algebraic interpretation
of this objectpublic final Variant setLength(int newLength) throws UnsupportedOperationException
setLength
in interface MutableTextValue<Variant>
setLength
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant setMaximum() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableScalar
precision
. 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.setMaximum
in interface MutableScalar<Variant>
setMaximum
in class AbstractPrimitiveWrapper<Variant>
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 Variant setMinimum() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableScalar
precision
. 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.setMinimum
in interface MutableScalar<Variant>
setMinimum
in class AbstractPrimitiveWrapper<Variant>
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 Variant setNegativeInfinity() throws UnsupportedOperationException
MutableScalar
minimum
valuesetNegativeInfinity
in interface MutableScalar<Variant>
setNegativeInfinity
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
- if this object's value cannot be changedpublic final Variant setPi() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableScalar
setPi
in interface MutableScalar<Variant>
setPi
in class AbstractPrimitiveWrapper<Variant>
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 Variant setPositiveInfinity() throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException
MutableScalar
maximum
valuesetPositiveInfinity
in interface MutableScalar<Variant>
setPositiveInfinity
in class AbstractPrimitiveWrapper<Variant>
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 Variant setReal(BigDecimal aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException, NullPointerException
MutableUnlimitedDecimalValue
decimal
value and answer this object (facilitates chaining)setReal
in interface MutableUnlimitedDecimalValue<Variant>
setReal
in class AbstractPrimitiveWrapper<Variant>
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 final Variant setReal(BigInteger aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException, NullPointerException
MutableUnlimitedIntegerValue
integer
value and answer this object (facilitates chaining)setReal
in interface MutableUnlimitedIntegerValue<Variant>
setReal
in class AbstractPrimitiveWrapper<Variant>
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 final Variant setReal(SealedReal<?> aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException, NullPointerException
MutableReal
primitive
and answer this object (facilitates chaining)setReal
in interface MutableReal<Variant>
setReal
in class AbstractReal<Variant>
aValue
- a numeric primitive
UnsupportedOperationException
- 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 Variant setScalar(boolean aValue) throws UnsupportedOperationException
MutableBooleanValue
boolean
value and answer this
object (facilitates chaining)setScalar
in interface MutableBooleanValue<Variant>
setScalar
in class AbstractPrimitiveWrapper<Variant>
aValue
- a boolean
valueUnsupportedOperationException
- if this object's value cannot be changedpublic final Variant setScalar(byte aValue) throws UnsupportedOperationException
MutableByteValue
byte
value and answer this
object (facilitates chaining)setScalar
in interface MutableByteValue<Variant>
setScalar
in class AbstractPrimitiveWrapper<Variant>
aValue
- a byte
valueUnsupportedOperationException
- if this object's value cannot be changedpublic final Variant setScalar(char aValue) throws UnsupportedOperationException
MutableCharacterValue
char
value and answer this
object (facilitates chaining)setScalar
in interface MutableCharacterValue<Variant>
setScalar
in class AbstractPrimitiveWrapper<Variant>
aValue
- a char
valueUnsupportedOperationException
- if this object's value cannot be changedpublic final Variant setScalar(double aValue) throws UnsupportedOperationException
MutableDoubleValue
double
value and answer this
object (facilitates chaining)setScalar
in interface MutableDoubleValue<Variant>
setScalar
in class AbstractPrimitiveWrapper<Variant>
aValue
- a double
valueUnsupportedOperationException
- if this object's value cannot be changedpublic final Variant setScalar(float aValue) throws UnsupportedOperationException
MutableFloatValue
float
value and answer this
object (facilitates chaining)setScalar
in interface MutableFloatValue<Variant>
setScalar
in class AbstractPrimitiveWrapper<Variant>
aValue
- a float
valueUnsupportedOperationException
- if this object's value cannot be changedpublic final Variant setScalar(int aValue) throws UnsupportedOperationException
MutableIntegerValue
int
value and answer this
object (facilitates chaining)setScalar
in interface MutableIntegerValue<Variant>
setScalar
in class AbstractPrimitiveWrapper<Variant>
aValue
- an int
valueUnsupportedOperationException
- if this object's value cannot be changedpublic final Variant setScalar(long aValue) throws UnsupportedOperationException
MutableLongValue
long
value and answer this
object (facilitates chaining)setScalar
in interface MutableLongValue<Variant>
setScalar
in class AbstractPrimitiveWrapper<Variant>
aValue
- a long
valueUnsupportedOperationException
- if this object's value cannot be changedpublic final Variant setScalar(SealedScalar<?> aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException, NullPointerException
MutableScalar
setScalar
in interface MutableScalar<Variant>
setScalar
in class AbstractPrimitiveWrapper<Variant>
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 Variant setScalar(short aValue) throws UnsupportedOperationException
MutableShortValue
short
value and answer this
object (facilitates chaining)setScalar
in interface MutableShortValue<Variant>
setScalar
in class AbstractPrimitiveWrapper<Variant>
aValue
- a short
valueUnsupportedOperationException
- if this object's value cannot be changedpublic final Variant setText(CharSequence content) throws UnsupportedOperationException, NullPointerException, IllegalArgumentException
MutableTextValue
text
value and answer
this object (facilitates chaining)setText
in interface MutableTextValue<Variant>
setText
in class AbstractPrimitiveWrapper<Variant>
content
- a text
valueUnsupportedOperationException
- if this object's value cannot be changedNullPointerException
- a null
value was provided and this implementation does
not accept null
valuesIllegalArgumentException
- if the specified value was incommensurate with this object's
specificationpublic final Variant setTrue() throws UnsupportedOperationException, ArithmeticException
MutableBooleanValue
true
and answer this
object (facilitates chaining)setTrue
in interface MutableBooleanValue<Variant>
setTrue
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
- if this object's value cannot be changedArithmeticException
- the new value was incompatible with with algebraic interpretation
of this objectpublic final Variant setUnity() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
setUnity
in interface MutableScalar<Variant>
setUnity
in class AbstractPrimitiveWrapper<Variant>
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 Variant setZero() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
setZero
in interface MutableScalar<Variant>
setZero
in class AbstractPrimitiveWrapper<Variant>
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 Variant shiftLeft(int count) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
<<
). In other
sequences, the specified number of default values will be prepended to
the beginning of the sequence, increasing the ordinal position of all
existing elements by the specified count.shiftLeft
in interface MutableScalar<Variant>
shiftLeft
in class AbstractPrimitiveWrapper<Variant>
count
- the number of default values to be prepended to this sequenceUnsupportedOperationException
- if this object's value cannot be changed or if this structure is
not an algebraic tupleIllegalArgumentException
- if the specified value was incommensurate with this structure's
specificationArithmeticException
- the numeric value provided was incompatible with with algebraic
interpretation of this structurepublic final Variant shiftRight(int count) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
>>
operator). In other sequences, the specified number of values
will be removed from the beginning of the sequence, decreasing the
ordinal position of all remaining elements by the specified count.shiftRight
in interface MutableScalar<Variant>
shiftRight
in class AbstractPrimitiveWrapper<Variant>
count
- the number of values to be removed from the beginning of this
sequenceUnsupportedOperationException
- if this object's value cannot be changed or if this structure is
not an algebraic tupleIllegalArgumentException
- if the specified value was incommensurate with this structure's
specificationArithmeticException
- the numeric value provided was incompatible with with algebraic
interpretation of this structurepublic final Variant shiftRightExtendZero(int count) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
>>>
operator). In other
sequences, the specified number of values will be removed from the
beginning of the sequence, decreasing the ordinal position of all
remaining elements by the specified count.shiftRightExtendZero
in interface MutableScalar<Variant>
shiftRightExtendZero
in class AbstractPrimitiveWrapper<Variant>
count
- the number of values to be removed from the beginning of this
sequenceUnsupportedOperationException
- if this object's value cannot be changed or if this structure is
not an algebraic tupleIllegalArgumentException
- if the specified value was incommensurate with this structure's
specificationArithmeticException
- the numeric value provided was incompatible with with algebraic
interpretation of this structurepublic final Variant sine() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
sine
sine
in interface MutableScalar<Variant>
sine
in class AbstractPrimitiveWrapper<Variant>
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 Variant square() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
square
in interface MutableScalar<Variant>
square
in class AbstractPrimitiveWrapper<Variant>
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 Variant squareRoot() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
squareRoot
in interface MutableScalar<Variant>
squareRoot
in class AbstractPrimitiveWrapper<Variant>
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 CharSequence subSequence(int start, int end)
subSequence
in interface CharSequence
subSequence
in class AbstractPrimitiveWrapper<Variant>
public final String substring(int beginIndex) throws IndexOutOfBoundsException
substring
in interface SealedTextValue
substring
in class AbstractPrimitiveWrapper<Variant>
IndexOutOfBoundsException
public final String substring(int beginIndex, int endIndex) throws IndexOutOfBoundsException
substring
in interface SealedTextValue
substring
in class AbstractPrimitiveWrapper<Variant>
IndexOutOfBoundsException
public final Variant sum(BigDecimal aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
sum
in interface MutableReal<Variant>
sum
in class AbstractPrimitiveWrapper<Variant>
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 Variant sum(BigInteger aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
sum
in interface MutableReal<Variant>
sum
in class AbstractPrimitiveWrapper<Variant>
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 Variant sum(boolean aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
sum
in interface MutableScalar<Variant>
sum
in class AbstractPrimitiveWrapper<Variant>
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 Variant sum(byte aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
sum
in interface MutableScalar<Variant>
sum
in class AbstractPrimitiveWrapper<Variant>
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 Variant sum(char aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
sum
in interface MutableScalar<Variant>
sum
in class AbstractPrimitiveWrapper<Variant>
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 Variant sum(double aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
sum
in interface MutableScalar<Variant>
sum
in class AbstractPrimitiveWrapper<Variant>
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 Variant sum(float aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
sum
in interface MutableScalar<Variant>
sum
in class AbstractPrimitiveWrapper<Variant>
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 Variant sum(int aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
sum
in interface MutableScalar<Variant>
sum
in class AbstractPrimitiveWrapper<Variant>
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 Variant sum(long aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
sum
in interface MutableScalar<Variant>
sum
in class AbstractPrimitiveWrapper<Variant>
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 Variant sum(short aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
sum
in interface MutableScalar<Variant>
sum
in class AbstractPrimitiveWrapper<Variant>
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 Variant swapPrimitives(Primitive<?> aValue) throws UnsupportedOperationException
Primitive
swapPrimitives
in interface Primitive<Variant>
swapPrimitives
in class AbstractPrimitiveWrapper<Variant>
aValue
- the primitive to swap withUnsupportedOperationException
public final Variant tangent() throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
tangent
tangent
in interface MutableScalar<Variant>
tangent
in class AbstractPrimitiveWrapper<Variant>
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 Variant upperCase() throws UnsupportedOperationException
MutableTextValue
upperCase
in interface MutableTextValue<Variant>
upperCase
in class AbstractPrimitiveWrapper<Variant>
UnsupportedOperationException
public final Variant xor(BigInteger aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableReal
xor
in interface MutableReal<Variant>
xor
in class AbstractPrimitiveWrapper<Variant>
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 Variant xor(boolean aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
xor
in interface MutableScalar<Variant>
xor
in class AbstractPrimitiveWrapper<Variant>
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 Variant xor(byte aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
xor
in interface MutableScalar<Variant>
xor
in class AbstractPrimitiveWrapper<Variant>
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 Variant xor(char aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
xor
in interface MutableScalar<Variant>
xor
in class AbstractPrimitiveWrapper<Variant>
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 Variant xor(int aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
xor
in interface MutableScalar<Variant>
xor
in class AbstractPrimitiveWrapper<Variant>
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 Variant xor(long aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
xor
in interface MutableScalar<Variant>
xor
in class AbstractPrimitiveWrapper<Variant>
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 Variant xor(short aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableScalar
xor
in interface MutableScalar<Variant>
xor
in class AbstractPrimitiveWrapper<Variant>
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 static final Primitive<?> toPrimitive(Number aNumber)
public static final Primitive<?> toPrimitive(NumericPrecision prec)
public static final Primitive<?> toPrimitive(SealedReal<?> aReal)
public static final Primitive<?> toPrimitive(SealedScalar<?> aScalar)
public static final Variant valueOfPrimitive(SealedPrimitive<?> aValue)
public static final Variant valueOfReal(SealedReal<?> aReal)
public static final Variant valueOfScalar(SealedScalar<?> aScalar)
Copyright © 2006-2012 Ware-Squared Software Development. All Rights Reserved.