public final class Constant extends AbstractConstant<Constant>
primitive| Modifier and Type | Field and Description |
|---|---|
static Constant |
BACK_SLASH
ASCII "back slash"
0x005C |
static Constant |
BACK_SPACE
ASCII "carriage return"
0x0008 |
static Constant |
CARRIAGE_RETURN
ASCII "carriage return"
0x000D |
static Constant |
DELETE
ASCII "delete"
0x007F |
static Constant |
DOUBLE_QUOTE
ASCII double quote
0x0022 |
static Constant |
E
Napier's (Euler's) constant
|
static Constant |
EIGHT
Eight (8)
|
static Constant |
EMPTY
An empty string ("")
|
static String |
EMPTYS |
static Constant |
ESCAPE
ASCII "escape"
0x001B |
static Constant |
FALSE
Boolean
FALSE |
static Constant |
FIVE
Five (5)
|
static Constant |
FORM_FEED
ASCII "form feed"
0x000C |
static Constant |
FOUR
Four (4)
|
static Constant |
INVALID
IEEE Not-a-Number
|
static Constant |
LINE_FEED
ASCII "line feed"
0x000A |
static Constant |
LINE_SEPARATOR
System-dependent line
separator |
static Constant |
MAXIMUM
Maximum values
|
static Constant |
MINIMUM
Minimum values
|
static Constant |
NEGATIVE_INFINITY
Negative infinity
|
static Constant |
NEGATIVE_ONE
Negative One (-1)
|
static Constant |
NEGATIVE_TWO
Negative One (-1)
|
static Constant |
NINE
Nine (9)
|
static Constant |
NUL
Character NUL (zero)
|
static Constant |
NULL
Null, the empty set, or void |
static String |
NULL_STRING |
static Constant |
ONE
One (1)
|
static Constant |
ONE_HUNDRED
One Hundred (100)
|
static Constant |
PI
Pi
|
static Constant |
POSITIVE_INFINITY
Positive infinity
|
static Constant |
SEVEN
Seven (7)
|
static Constant |
SINGLE_QUOTE
ASCII single quote
0x0027 |
static Constant |
SIX
Size (6)
|
static Constant |
SPACE
ASCII space
0x0020 |
static Constant |
TAB
ASCII tab
0x0009 |
static Constant |
TEN
Ten (10)
|
static Constant |
THREE
Three (3)
|
static Constant |
TRUE
Boolean
TRUE |
static Constant |
TWO
Two (2)
|
static Constant |
UNKNOWN
Unknown constant
|
static Constant |
VERTICAL_TAB
ASCII "vertical tab"
0x000B |
static Constant |
ZERO
Zero (0)
|
NaN, ONEI, ZERO_DOUBLE_LONG_BITS, ZERO_FLOAT_INT_BITS, ZEROI| Modifier | Constructor and Description |
|---|---|
|
Constant(BigDecimal ud) |
|
Constant(BigInteger ui) |
|
Constant(boolean aBoolean) |
|
Constant(byte aByte) |
|
Constant(char aCharacter) |
|
Constant(Domain aDomain,
NumericPrecision aPrecision,
boolean aBoolean,
Boolean aBooleanObject,
byte aByte,
char aCharacter,
Character aCharacterObject,
double aDouble,
float aFloat,
int anInteger,
long aLong,
Number aNumber,
short aShort,
String aString,
BigDecimal anUnlimitedDecimal,
BigInteger anUnlimitedInteger,
int aHashCode,
int aSignum,
boolean isInfinity,
boolean isInvalid,
boolean isMaximum,
boolean isMinimum,
boolean isNegative,
boolean isNegativeInfinity,
boolean isPositive,
boolean isPositiveInfinity,
boolean isUnity,
boolean isZero) |
|
Constant(double aDouble) |
|
Constant(Enum<?> anEnumeration) |
|
Constant(Enum<?> anEnumeration,
String aDescription) |
|
Constant(float aFloat) |
|
Constant(int anInteger) |
|
Constant(long aLong) |
|
Constant(NumericPrecision aPrecision,
boolean aBoolean,
Boolean aBooleanObject,
byte aByte,
char aCharacter,
Character aCharacterObject,
double aDouble,
float aFloat,
int anInteger,
long aLong,
Number aNumber,
short aShort,
String aString,
BigDecimal anUnlimitedDecimal,
BigInteger anUnlimitedInteger,
int aHashCode,
int aSignum,
boolean isInfinity,
boolean isInvalid,
boolean isMaximum,
boolean isMinimum,
boolean isNegative,
boolean isNegativeInfinity,
boolean isPositive,
boolean isPositiveInfinity,
boolean isUnity,
boolean isZero) |
|
Constant(NumericPrecision aPrecision,
double aDouble,
BigDecimal ud) |
|
Constant(NumericPrecision aPrecision,
double aDouble,
BigDecimal ud,
String aString) |
|
Constant(NumericPrecision aPrecision,
double aDouble,
float aFloat,
BigDecimal ud,
String aString) |
|
Constant(short aShort) |
|
Constant(String aString) |
protected |
Constant(String aString,
SealedReal<?> aReal) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
booleanValue() |
byte |
byteValue() |
char |
charAt(int anIndex) |
char |
charValue() |
int |
codePointAt(int index) |
int |
codePointBefore(int index) |
int |
codePointCount(int beginIndex,
int endIndex) |
Constant |
copyUsing(BigDecimal aValue)
Using this real as a factory, produce a new real of the
same type but initialized with the value specified
|
Constant |
copyUsing(BigInteger aValue)
Using this real as a factory, produce a new real of the
same type but initialized with the value specified
|
Constant |
copyUsing(boolean aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
Constant |
copyUsing(byte aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
Constant |
copyUsing(char aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
Constant |
copyUsing(double aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
Constant |
copyUsing(float aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
Constant |
copyUsing(int aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
Constant |
copyUsing(long aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
Constant |
copyUsing(short aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
Constant |
copyUsingPrimitive(SealedPrimitive<?> aValue)
Using this primitive as a factory, produce a new primitive of the same
type but initialized with the value specified
|
Constant |
copyUsingReal(SealedReal<?> aValue)
Using this real as a factory, produce a new real of the
same type but initialized with the value specified
|
Constant |
copyUsingScalar(SealedScalar<?> aValue)
Using this scalar as a factory, produce a new scalar of the
same type but initialized with the value specified
|
Constant |
copyUsingText(CharSequence aValue)
Using this primitive as a factory, produce a new primitive of the same
type but initialized with the value specified
|
long |
doubleLongBits() |
double |
doubleValue() |
int |
floatIntBits() |
float |
floatValue() |
static Constant |
getNamedConstant(String aString) |
static Constant |
getNamedConstantIgnoreCase(String aString) |
StructureStrategy |
getStructureStrategy() |
int |
hashCode() |
static boolean |
hasName(String aName) |
static boolean |
hasNameIgnoreCase(String aName) |
int |
indexOfText(CharSequence str) |
int |
indexOfText(CharSequence str,
int beginIndex) |
<R extends Real<?>> |
induceRealMaximum(R aTarget)
Induce the maximum domain value into the target
|
<R extends Real<?>> |
induceRealMinimum(R aTarget)
Induce the minimum domain value into the target
|
<S extends Scalar<?>> |
induceScalarMaximum(S aTarget)
Induce the maximum domain value into the target
|
<S extends Scalar<?>> |
induceScalarMinimum(S aTarget)
Induce the minimum domain value into the target
|
int |
intValue() |
boolean |
isEmpty()
Answer
true if this structure contains no elements. |
boolean |
isInfinity() |
boolean |
isInvalid() |
boolean |
isMaximum() |
boolean |
isMinimum() |
boolean |
isNegative() |
boolean |
isNegativeInfinity() |
boolean |
isPositive() |
boolean |
isPositiveInfinity() |
boolean |
isUnique() |
boolean |
isUnity()
Answer
true if this value represents the multiplicative
identity in its arithmetic domain. |
boolean |
isZero()
Answer
true if this value represents the additive identity
in its algebraic group. |
static Iterator<Constant> |
iterateNamedConstants() |
static Iterator<String> |
iterateNames() |
int |
length() |
long |
longValue() |
static Constant |
maskAt(int aBitPosition) |
static Constant |
notMaskAt(int aBitPosition) |
short |
shortValue() |
int |
signum() |
int |
size()
Returns the number of elements in this algebraic structure.
|
CharSequence |
subSequence(int start,
int end) |
String |
substring(int start) |
String |
substring(int start,
int end) |
Boolean |
toBoolean() |
static String |
toCamelCase(String aString) |
Character |
toCharacter() |
static Primitive<?> |
toConstant(Primitive<?> aPrimitive) |
Number |
toNumber() |
String |
toString() |
BigDecimal |
toUnlimitedDecimal() |
static BigDecimal |
toUnlimitedDecimal(BigInteger aScalar) |
static BigDecimal |
toUnlimitedDecimal(boolean aScalar) |
static BigDecimal |
toUnlimitedDecimal(double aScalar) |
static BigDecimal |
toUnlimitedDecimal(float aScalar) |
static BigDecimal |
toUnlimitedDecimal(long aScalar) |
static BigDecimal |
toUnlimitedDecimal(String text) |
BigInteger |
toUnlimitedInteger() |
static BigInteger |
toUnlimitedInteger(boolean aScalar) |
static BigInteger |
toUnlimitedInteger(long aScalar) |
static Constant |
valueOf(BigDecimal aScalar) |
static Constant |
valueOf(BigInteger aScalar) |
static Constant |
valueOf(boolean aScalar) |
static Constant |
valueOf(byte aScalar) |
static Constant |
valueOf(char aScalar) |
static Constant |
valueOf(double aScalar) |
static Constant |
valueOf(Enum<?> anEnumeration) |
static Constant |
valueOf(Enum<?> anEnumeration,
String aDescription) |
static Constant |
valueOf(float aScalar) |
static Constant |
valueOf(int aScalar) |
static Constant |
valueOf(long aScalar) |
static Constant |
valueOf(short aScalar) |
static Constant |
valueOfNumber(Number aNumber) |
static Constant |
valueOfObject(Object anObject) |
static Constant |
valueOfPrimitive(SealedPrimitive<?> aPrimitive) |
static Constant |
valueOfReal(SealedReal<?> aReal) |
static Constant |
valueOfScalar(SealedScalar<?> aScalar) |
static Constant |
valueOfText(String aString) |
static Constant |
valueOfTranslatedText(String aString) |
append, append, append, append, append, append, append, append, append, append, append, append, appendCodePoint, booleanPostDecrement, booleanPostIncrement, bytePostDecrement, bytePostIncrement, charPostDecrement, charPostIncrement, clear, copy, cube, decrement, delete, deleteCharAt, doublePostDecrement, doublePostIncrement, floatPostDecrement, floatPostIncrement, getConcurrency, increment, inducePostDecrement, inducePostDecrement, inducePostDecrement, inducePostIncrement, inducePostIncrement, inducePostIncrement, induceRealValue, induceScalarValue, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, intPostDecrement, intPostIncrement, inverse, isConfigurable, isDigit, isElastic, isExpandable, isIdentifierIgnorable, isISOControl, isJavaIdentifierPart, isJavaIdentifierStart, isLetter, isLetterOrDigit, isLowerCase, isMirrored, isModulo, isReal, isReducible, isText, isTitleCase, isUnicode, isUnicodeIdentifierPart, isUnicodeIdentifierStart, isUpperCase, isWhitespace, longPostDecrement, longPostIncrement, lowerCase, negate, not, replace, replace, replaceAll, replaceCharacter, replaceFirst, reverse, round, setCharAt, setEnumeration, setLength, setMaximum, setMinimum, setNegativeInfinity, setPositiveInfinity, setReal, setReal, setScalar, setScalar, setScalar, setScalar, setScalar, setScalar, setScalar, setScalar, setText, shiftLeft, shiftRight, shiftRightExtendZero, shortPostDecrement, shortPostIncrement, square, swapPrimitives, textPostDecrement, textPostIncrement, titleCase, toCodePoint, trim, unlimitedDecimalPostDecrement, unlimitedDecimalPostIncrement, unlimitedIntegerPostDecrement, unlimitedIntegerPostIncrement, upperCaseappend, append, clearContents, clearText, compareTo, compareToPrimitive, equals, inducePrimitiveValue, induceTextValue, isEqualToPrimitive, isEqualToText, isGreaterOrEqualToPrimitive, isGreaterOrEqualToText, isGreaterThanPrimitive, isGreaterThanText, isLessOrEqualToPrimitive, isLessOrEqualToText, isLessThanPrimitive, isLessThanText, isNotEqualToPrimitive, isNotEqualToText, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, setBoolean, setCharacter, setNumber, setPrimitive, setReal, toPrimitive, toPrimitiveandOfPrimitive, angleWithPrimitive, compareToText, differenceOfPrimitive, hypotenuseWithPrimitive, inducePrimitiveMaximum, inducePrimitiveMinimum, induceTextSize, modOfPrimitive, orOfPrimitive, powerOfPrimitive, productOfPrimitive, quotientOfPrimitive, sumOfPrimitive, toPrimitive, xorOfPrimitiveand, andOfNumber, andOfReal, angleWithReal, compareToNumber, compareToReal, compareToReal, compareToReal, difference, difference, differenceOfNumber, differenceOfReal, gcd, gcdOfNumber, gcdOfReal, hypotenuseWithReal, induceRealSize, isEqual, isEqual, isEqualToNumber, isEqualToReal, isGreater, isGreater, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqualToNumber, isGreaterOrEqualToReal, isGreaterThanNumber, isGreaterThanReal, isLess, isLess, isLessOrEqual, isLessOrEqual, isLessOrEqualToNumber, isLessOrEqualToReal, isLessThanNumber, isLessThanReal, isNotEqual, isNotEqual, isNotEqualToNumber, isNotEqualToReal, mod, mod, modOfNumber, modOfReal, or, orOfNumber, orOfReal, powerOfReal, product, product, productOfNumber, productOfReal, quotient, quotient, quotientOfNumber, quotientOfReal, sum, sum, sumOfNumber, sumOfReal, toReal, unlimitedIntegerModularInverse, xor, xorOfNumber, xorOfRealabsoluteValue, and, and, and, and, and, and, andOfScalar, angleWith, angleWithNumber, angleWithScalar, arcCosine, arcSine, arcTangent, assertDomain, assertPrecision, base10Log, boundsCheck, byteMaskAt, byteNotMaskAt, byteValue, ceiling, charMaskAt, charNotMaskAt, charValue, clearByteBitAt, clearCharBitAt, clearDoubleBitAt, clearFloatBitAt, clearIntBitAt, clearLongBitAt, clearShortBitAt, clearUnlimitedDecimalBitAt, clearUnlimitedIntegerBitAt, compareTo, compareTo, compareTo, compareTo, compareTo, compareTo, compareTo, compareTo, compareTo, compareTo, compareTo, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToZero, cosine, cubeRoot, degrees, difference, difference, difference, difference, difference, difference, difference, difference, differenceOfScalar, divideByZero, down, exponential, exponentialLessOne, floor, gcd, gcd, gcd, gcd, gcd, gcdOfScalar, getBooleanBitAt, getByteBitAt, getCharBitAt, getDomain, getDoubleBitAt, getFloatBitAt, getIntBitAt, getLongBitAt, getPrecision, getShortBitAt, getUnlimitedDecimalBitAt, getUnlimitedIntegerBitAt, halfDown, halfEven, halfUp, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hyperbolicCosine, hyperbolicSine, hyperbolicTangent, hypotenuseWith, hypotenuseWithNumber, hypotenuseWithScalar, indexOutOfBoundsAt, induceScalarSize, intGCD, intMaskAt, intModularInverse, intModularQuotient, intNotMaskAt, intValue, invalidate, isAlphabetic, isBmpCodePoint, isCountable, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqualToScalar, isFalse, isFinite, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqualToScalar, isGreaterThanScalar, isHighSurrogate, isIdeographic, isImaginary, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqualToScalar, isLessThanScalar, isLowSurrogate, isMutable, isNegativeFinite, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqualToScalar, isOrdered, isPositiveFinite, isSupplementaryCodePoint, isSurrogate, isTrue, isValid, isValidCodePoint, longGCD, longMaskAt, longModularInverse, longModularQuotient, longNotMaskAt, longSize, longValue, milliseconds, mod, mod, mod, mod, mod, mod, mod, mod, modOfScalar, nanoseconds, naturalLog, naturalLogPlusOne, or, or, or, or, or, or, orOfScalar, power, power, powerOfNumber, powerOfScalar, product, product, product, product, product, product, product, product, productOfScalar, promoteTo, quotient, quotient, quotient, quotient, quotient, quotient, quotient, quotient, quotientOfScalar, radians, random, setByteBitAt, setCharBitAt, setDoubleBitAt, setE, setFalse, setFloatBitAt, setIntBitAt, setLongBitAt, setPi, setScalar, setShortBitAt, setTrue, setUnity, setUnlimitedDecimalBitAt, setUnlimitedIntegerBitAt, setZero, shortMaskAt, shortNotMaskAt, shortValue, sine, squareRoot, sum, sum, sum, sum, sum, sum, sum, sum, sumOfScalar, tangent, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toByteArray, toEnumeration, toScalar, toUnlimitedInteger, unlimitedIntegerMaskAt, unlimitedIntegerNotMaskAt, up, xor, xor, xor, xor, xor, xor, xorOfScalarclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareToReal, compareToReal, compareToReal, isEqual, isEqual, isEqualToReal, isGreater, isGreater, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqualToReal, isGreaterThanReal, isLess, isLess, isLessOrEqual, isLessOrEqual, isLessOrEqualToReal, isLessThanReal, isNotEqual, isNotEqual, isNotEqualToRealcompareToNumber, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToZero, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqualToNumber, isEqualToScalar, isFalse, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqualToNumber, isGreaterOrEqualToScalar, isGreaterThanNumber, isGreaterThanScalar, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqualToNumber, isLessOrEqualToScalar, isLessThanNumber, isLessThanScalar, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqualToNumber, isNotEqualToScalar, isTrue, toEnumerationisFinite, isImaginary, isNegativeFinite, isPositiveFinite, isValidisAlphabetic, isBmpCodePoint, isHighSurrogate, isIdeographic, isLowSurrogate, isSupplementaryCodePoint, isSurrogate, isValidCodePointgetPrecisioninduceRealSizeinduceScalarSizegetDomain, longSizeisCountable, isOrderedtoRealtoScalarand, andOfReal, angleWithReal, difference, difference, differenceOfReal, gcd, gcdOfReal, hypotenuseWithReal, mod, mod, modOfReal, or, orOfReal, powerOfReal, product, product, productOfReal, quotient, quotient, quotientOfReal, sum, sum, sumOfReal, xor, xorOfRealabsoluteValue, and, and, and, and, and, and, andOfNumber, andOfScalar, angleWith, angleWithNumber, angleWithScalar, arcCosine, arcSine, arcTangent, base10Log, ceiling, cosine, cubeRoot, degrees, difference, difference, difference, difference, difference, difference, difference, difference, differenceOfNumber, differenceOfScalar, down, exponential, exponentialLessOne, floor, gcd, gcd, gcd, gcd, gcd, gcdOfNumber, gcdOfScalar, halfDown, halfEven, halfUp, hyperbolicCosine, hyperbolicSine, hyperbolicTangent, hypotenuseWith, hypotenuseWithNumber, hypotenuseWithScalar, invalidate, milliseconds, mod, mod, mod, mod, mod, mod, mod, mod, modOfNumber, modOfScalar, nanoseconds, naturalLog, naturalLogPlusOne, or, or, or, or, or, or, orOfNumber, orOfScalar, power, power, powerOfNumber, powerOfScalar, product, product, product, product, product, product, product, product, productOfNumber, productOfScalar, quotient, quotient, quotient, quotient, quotient, quotient, quotient, quotient, quotientOfNumber, quotientOfScalar, radians, random, setE, setPi, setScalar, setUnity, setZero, sine, squareRoot, sum, sum, sum, sum, sum, sum, sum, sum, sumOfNumber, sumOfScalar, tangent, up, xor, xor, xor, xor, xor, xor, xorOfNumber, xorOfScalarsetFalse, setTrueassertPrecision, promoteToassertDomainpublic static final Constant BACK_SLASH
0x005Cpublic static final Constant BACK_SPACE
0x0008public static final Constant CARRIAGE_RETURN
0x000Dpublic static final Constant DOUBLE_QUOTE
0x0022public static final Constant E
public static final Constant INVALID
Double.NaN,
Float.NaNpublic static final Constant LINE_SEPARATOR
separatorpublic static final Constant NEGATIVE_INFINITY
public static final Constant NEGATIVE_ONE
public static final Constant NEGATIVE_TWO
public static final String NULL_STRING
public static final Constant ONE_HUNDRED
public static final Constant PI
public static final Constant POSITIVE_INFINITY
public static final Constant SINGLE_QUOTE
0x0027public static final Constant VERTICAL_TAB
0x000Bprotected Constant(String aString, SealedReal<?> aReal)
public Constant(BigDecimal ud)
public Constant(BigInteger ui)
public Constant(boolean aBoolean)
public Constant(byte aByte)
public Constant(char aCharacter)
public Constant(Domain aDomain, NumericPrecision aPrecision, boolean aBoolean, Boolean aBooleanObject, byte aByte, char aCharacter, Character aCharacterObject, double aDouble, float aFloat, int anInteger, long aLong, Number aNumber, short aShort, String aString, BigDecimal anUnlimitedDecimal, BigInteger anUnlimitedInteger, int aHashCode, int aSignum, boolean isInfinity, boolean isInvalid, boolean isMaximum, boolean isMinimum, boolean isNegative, boolean isNegativeInfinity, boolean isPositive, boolean isPositiveInfinity, boolean isUnity, boolean isZero)
public Constant(double aDouble)
public Constant(float aFloat)
public Constant(int anInteger)
public Constant(long aLong)
public Constant(NumericPrecision aPrecision, boolean aBoolean, Boolean aBooleanObject, byte aByte, char aCharacter, Character aCharacterObject, double aDouble, float aFloat, int anInteger, long aLong, Number aNumber, short aShort, String aString, BigDecimal anUnlimitedDecimal, BigInteger anUnlimitedInteger, int aHashCode, int aSignum, boolean isInfinity, boolean isInvalid, boolean isMaximum, boolean isMinimum, boolean isNegative, boolean isNegativeInfinity, boolean isPositive, boolean isPositiveInfinity, boolean isUnity, boolean isZero)
public Constant(NumericPrecision aPrecision, double aDouble, BigDecimal ud)
public Constant(NumericPrecision aPrecision, double aDouble, BigDecimal ud, String aString)
public Constant(NumericPrecision aPrecision, double aDouble, float aFloat, BigDecimal ud, String aString)
public Constant(short aShort)
public final boolean booleanValue()
booleanpublic final byte byteValue()
byteValue in interface SealedByteValuebyteValue in class Numberbytepublic final char charAt(int anIndex)
charAt in interface CharSequencecharAt in class AbstractNumericPrimitive<Constant>public final char charValue()
charpublic final int codePointAt(int index)
codePointAt in interface SealedTextValuecodePointAt in class AbstractNumericPrimitive<Constant>public final int codePointBefore(int index)
codePointBefore in interface SealedTextValuecodePointBefore in class AbstractNumericPrimitive<Constant>public final int codePointCount(int beginIndex, int endIndex)
codePointCount in interface SealedTextValuecodePointCount in class AbstractNumericPrimitive<Constant>public final Constant copyUsing(BigDecimal aValue)
RealReplicatoraValue - a new valuepublic final Constant copyUsing(BigInteger aValue)
RealReplicatoraValue - a new valuepublic final Constant copyUsing(boolean aValue)
ScalarReplicatoraValue - a new valuepublic final Constant copyUsing(byte aValue)
ScalarReplicatoraValue - a new valuepublic final Constant copyUsing(char aValue)
ScalarReplicatoraValue - a new valuepublic final Constant copyUsing(double aValue)
ScalarReplicatoraValue - a new valuepublic final Constant copyUsing(float aValue)
ScalarReplicatoraValue - a new valuepublic final Constant copyUsing(int aValue)
ScalarReplicatoraValue - a new valuepublic final Constant copyUsing(long aValue)
ScalarReplicatoraValue - a new valuepublic final Constant copyUsing(short aValue)
ScalarReplicatoraValue - a new valuepublic final Constant copyUsingPrimitive(SealedPrimitive<?> aValue)
PrimitiveReplicatoraValue - a new valuepublic final Constant copyUsingReal(SealedReal<?> aValue)
RealReplicatoraValue - a new valuepublic final Constant copyUsingScalar(SealedScalar<?> aValue)
ScalarReplicatoraValue - a new valuepublic final Constant copyUsingText(CharSequence aValue)
PrimitiveReplicatorcopyUsingText in interface PrimitiveReplicator<Constant>copyUsingText in interface TextReplicator<Constant>copyUsingText in class AbstractNumericPrimitive<Constant>aValue - a new valuepublic final long doubleLongBits()
public final double doubleValue()
doubleValue in interface SealedDoubleValuedoubleValue in class Numberdoublepublic final int floatIntBits()
public final float floatValue()
floatValue in interface SealedFloatValuefloatValue in class Numberfloatpublic final StructureStrategy getStructureStrategy()
getStructureStrategy in interface SealedAlgebraicStructuregetStructureStrategy in class AbstractNumericPrimitive<Constant>public int hashCode()
hashCode in interface SealedKernelhashCode in class Objectpublic final int indexOfText(CharSequence str)
indexOfText in interface SealedTextValueindexOfText in class AbstractNumericPrimitive<Constant>public final int indexOfText(CharSequence str, int beginIndex)
indexOfText in interface SealedTextValueindexOfText in class AbstractNumericPrimitive<Constant>public <R extends Real<?>> R induceRealMaximum(R aTarget)
SealedRealDomaininduceRealMaximum in interface SealedRealDomaininduceRealMaximum in class AbstractConstant<Constant>R - the target typeaTarget - a target into which this domain's maximum value will be inducedpublic <R extends Real<?>> R induceRealMinimum(R aTarget)
SealedRealDomaininduceRealMinimum in interface SealedRealDomaininduceRealMinimum in class AbstractConstant<Constant>R - the target typeaTarget - a target into which this domain's minimum value will be inducedpublic <S extends Scalar<?>> S induceScalarMaximum(S aTarget)
SealedScalarDomaininduceScalarMaximum in interface SealedScalarDomaininduceScalarMaximum in class AbstractConstant<Constant>S - the target typeaTarget - a target into which this domain's maximum value will be inducedpublic <S extends Scalar<?>> S induceScalarMinimum(S aTarget)
SealedScalarDomaininduceScalarMinimum in interface SealedScalarDomaininduceScalarMinimum in class AbstractConstant<Constant>S - the target typeaTarget - a target into which this domain's minimum value will be inducedpublic final int intValue()
intValue in interface SealedIntegerValueintValue in class Numberintpublic final boolean isEmpty()
StructurePropertiestrue if this structure contains no elements. For
strings this would indicate an empty string (no characters
in an empty array). For scalars this would indicate an empty set, or a
zero bit count, which would be the case of null values. Note
that, although the null constant technically contains zero
elements, its string value evaluates to "null", which from
a String perspective is not empty.isEmpty in interface StructurePropertiesisEmpty in interface TextPropertiesisEmpty in class AbstractNumericPrimitive<Constant>true if this structure contains no elementspublic final boolean isInfinity()
public final boolean isInvalid()
public final boolean isMaximum()
true if this value represents the maximum rational value
in the totally ordered set it representspublic final boolean isMinimum()
true if this value represents the minimum rational value
in the totally ordered set it representspublic final boolean isNegative()
true if this value represents a negative valuepublic final boolean isNegativeInfinity()
true if this value represents negative infinitypublic final boolean isPositive()
true if this value represents a positive valuepublic final boolean isPositiveInfinity()
true if this value represents positive infinitypublic boolean isUnique()
isUnique in interface StructurePropertiesisUnique in class AbstractScalar<Constant>true if the elements in this structure are, by definition
of the structure's algebra, unique (e.g., sets)public final boolean isUnity()
NumericPropertiestrue if this value represents the multiplicative
identity in its arithmetic domain. For real numbers this is 1, for
matrices it would be the identity matrix and for functions this
would be a pass-through.true if this value represents the multiplicative
identity in its domainpublic final boolean isZero()
NumericPropertiestrue if this value represents the additive identity
in its algebraic group. For real numbers this is 0, for matrices this
would be the zero matrix and for functions this would map every
parameter to zero.true if this value represents the additive
identity in its algebraic grouppublic final int length()
length in interface CharSequencelength in class AbstractNumericPrimitive<Constant>public final long longValue()
longValue in interface SealedLongValuelongValue in class Numberlongpublic final short shortValue()
shortValue in interface SealedShortValueshortValue in class Numbershortpublic final int signum()
signum in interface NumericPropertiessignum in class AbstractScalar<Constant>zero, -1 if this number
is negative or +1 if it is
positivepublic final int size()
SealedAlgebraicStructureInteger.MAX_VALUE elements, returns
Integer.MAX_VALUE.size in interface SealedAlgebraicStructuresize in class AbstractScalar<Constant>Collection.size()public final CharSequence subSequence(int start, int end)
subSequence in interface CharSequencesubSequence in class AbstractNumericPrimitive<Constant>public final String substring(int start)
substring in interface SealedTextValuesubstring in class AbstractNumericPrimitive<Constant>public final String substring(int start, int end)
substring in interface SealedTextValuesubstring in class AbstractNumericPrimitive<Constant>public Boolean toBoolean()
toBoolean in interface SealedScalar<Constant>toBoolean in class AbstractScalar<Constant>Boolean
objectpublic final Character toCharacter()
toCharacter in interface SealedScalar<Constant>toCharacter in class AbstractScalar<Constant>Boolean
objectpublic final Number toNumber()
Number
objectpublic final String toString()
toString in interface CharSequencetoString in interface SealedKerneltoString in class Objectpublic final BigDecimal toUnlimitedDecimal()
decimal
property valuepublic final BigInteger toUnlimitedInteger()
integer
property valuepublic static final Constant getNamedConstant(String aString)
public static final Constant getNamedConstantIgnoreCase(String aString)
public static final boolean hasNameIgnoreCase(String aName)
public static final Iterator<Constant> iterateNamedConstants()
public static final Iterator<String> iterateNames()
public static final String toCamelCase(String aString)
public static final Primitive<?> toConstant(Primitive<?> aPrimitive)
public static final BigDecimal toUnlimitedDecimal(BigInteger aScalar)
public static final BigDecimal toUnlimitedDecimal(boolean aScalar)
public static final BigDecimal toUnlimitedDecimal(double aScalar)
public static final BigDecimal toUnlimitedDecimal(float aScalar)
public static final BigDecimal toUnlimitedDecimal(long aScalar)
public static final BigDecimal toUnlimitedDecimal(String text)
public static final BigInteger toUnlimitedInteger(boolean aScalar)
public static final BigInteger toUnlimitedInteger(long aScalar)
public static final Constant valueOf(BigDecimal aScalar)
public static final Constant valueOf(BigInteger aScalar)
public static final Constant valueOfNumber(Number aNumber)
public static final Constant valueOfObject(Object anObject)
public static final Constant valueOfPrimitive(SealedPrimitive<?> aPrimitive)
public static final Constant valueOfReal(SealedReal<?> aReal)
public static final Constant valueOfScalar(SealedScalar<?> aScalar)
public static final Constant valueOfText(String aString)
public static final Constant valueOfTranslatedText(String aString)
Copyright © 2006-2012 Ware-Squared Software Development. All Rights Reserved.