public final class EnumerationPrimitive extends AbstractModuloIntegerPrimitive<EnumerationPrimitive>
int precision primitive implementationNaN, ONEI, ZERO_DOUBLE_LONG_BITS, ZERO_FLOAT_INT_BITS, ZEROI| Modifier | Constructor and Description |
|---|---|
|
EnumerationPrimitive() |
|
EnumerationPrimitive(Class<E> anEnumerationClass) |
|
EnumerationPrimitive(Enum<?> aValue) |
|
EnumerationPrimitive(Enum<?>[] values) |
protected |
EnumerationPrimitive(Enum<?>[] values,
Enum<?> aValue) |
| Modifier and Type | Method and Description |
|---|---|
EnumerationPrimitive |
copy()
Produce a replica of this object
|
EnumerationPrimitive |
copyUsing(int aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
EnumerationPrimitive |
copyUsingText(CharSequence aValue)
Using this primitive as a factory, produce a new primitive of the same
type but initialized with the value specified
|
ConcurrencyStrategy |
getConcurrency() |
StructureStrategy |
getStructureStrategy() |
Enum<?> |
getValue() |
Enum<?>[] |
getValues() |
int |
intValue() |
<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) |
EnumerationPrimitive |
setPrimitive(SealedPrimitive<?> aValue)
Set this property to the specified primitive
|
EnumerationPrimitive |
setReal(SealedReal<?> aValue)
Set this property to the specified numeric
primitive and answer this object (facilitates chaining) |
EnumerationPrimitive |
setScalar(int aValue)
Set this property to the specified
int value and answer this
object (facilitates chaining) |
EnumerationPrimitive |
setScalar(SealedScalar<?> aValue)
Set this object to the specified scalar
|
EnumerationPrimitive |
setText(CharSequence content)
Set this property to the specified
text value and answer
this object (facilitates chaining) |
<E extends Enum<E>> |
toEnumeration(Class<E> anEnumerationClass)
Represent the value of this object as an appropriate member of the class
of the specified
enumeration |
String |
toString() |
absoluteValue, and, decrement, difference, getMaximumValue, getModularLimit, increment, induceScalarMaximum, induceScalarMinimum, intPostDecrement, intPostIncrement, inverse, isEmpty, isModulo, isOrdered, mod, modulo, not, or, product, quotient, setMaximum, setMinimum, setReal, setReal, setScalar, setScalar, setScalar, shiftLeft, shiftRight, shiftRightExtendZero, sum, xorand, and, and, and, booleanPostDecrement, booleanPostIncrement, booleanValue, bytePostDecrement, bytePostIncrement, byteValue, charPostDecrement, charPostIncrement, charValue, copyUsing, copyUsing, copyUsing, copyUsing, copyUsing, copyUsing, copyUsing, copyUsing, copyUsing, copyUsingPrimitive, copyUsingReal, copyUsingScalar, cube, difference, difference, difference, difference, doublePostDecrement, doublePostIncrement, doubleValue, floatPostDecrement, floatPostIncrement, floatValue, hashCode, inducePostDecrement, inducePostIncrement, induceRealMaximum, induceRealMinimum, induceRealValue, induceScalarValue, isFinite, isInfinity, isInvalid, isMaximum, isMinimum, isNegative, isNegativeFinite, isNegativeInfinity, isPositive, isPositiveFinite, isPositiveInfinity, isReal, isUnity, isZero, longPostDecrement, longPostIncrement, longValue, negate, or, or, or, or, product, product, product, product, quotient, quotient, quotient, quotient, round, setNumber, setScalar, setScalar, setScalar, setScalar, setUnity, setZero, shortPostDecrement, shortPostIncrement, shortValue, square, sum, sum, sum, sum, swapPrimitives, toNumber, toUnlimitedDecimal, toUnlimitedInteger, unlimitedDecimalPostDecrement, unlimitedDecimalPostIncrement, unlimitedIntegerPostDecrement, unlimitedIntegerPostIncrement, xor, xor, xor, xorappend, append, append, append, append, append, append, append, append, append, append, append, append, append, appendCodePoint, charAt, clear, clearContents, clearText, codePointAt, codePointBefore, codePointCount, compareTo, compareToPrimitive, delete, deleteCharAt, equals, indexOfText, indexOfText, inducePostDecrement, inducePostDecrement, inducePostIncrement, inducePostIncrement, inducePrimitiveValue, induceTextValue, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, isEqualToPrimitive, isEqualToText, isGreaterOrEqualToPrimitive, isGreaterOrEqualToText, isGreaterThanPrimitive, isGreaterThanText, isLessOrEqualToPrimitive, isLessOrEqualToText, isLessThanPrimitive, isLessThanText, isNotEqualToPrimitive, isNotEqualToText, isText, length, lowerCase, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, replace, replace, replaceAll, replaceCharacter, replaceFirst, reverse, setBoolean, setCharacter, setCharAt, setLength, subSequence, substring, substring, textPostDecrement, textPostIncrement, titleCase, toPrimitive, toPrimitive, trim, upperCaseandOfPrimitive, angleWithPrimitive, compareToText, differenceOfPrimitive, hypotenuseWithPrimitive, inducePrimitiveMaximum, inducePrimitiveMinimum, induceTextSize, modOfPrimitive, orOfPrimitive, powerOfPrimitive, productOfPrimitive, quotientOfPrimitive, sumOfPrimitive, toPrimitive, xorOfPrimitiveand, andOfNumber, andOfReal, angleWithReal, compareToNumber, compareToReal, compareToReal, compareToReal, difference, difference, differenceOfNumber, differenceOfReal, gcd, gcdOfNumber, gcdOfReal, hypotenuseWithReal, induceRealSize, isEqual, isEqual, isEqualToNumber, isEqualToReal, isGreater, isGreater, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqualToNumber, isGreaterOrEqualToReal, isGreaterThanNumber, isGreaterThanReal, isLess, isLess, isLessOrEqual, isLessOrEqual, isLessOrEqualToNumber, isLessOrEqualToReal, isLessThanNumber, isLessThanReal, isNotEqual, isNotEqual, isNotEqualToNumber, isNotEqualToReal, mod, mod, modOfNumber, modOfReal, or, orOfNumber, orOfReal, powerOfReal, product, product, productOfNumber, productOfReal, quotient, quotient, quotientOfNumber, quotientOfReal, sum, sum, sumOfNumber, sumOfReal, toReal, unlimitedIntegerModularInverse, xor, xorOfNumber, xorOfRealand, 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, differenceOfScalar, divideByZero, down, exponential, exponentialLessOne, floor, gcd, gcd, gcd, gcd, gcd, gcdOfScalar, getBooleanBitAt, getByteBitAt, getCharBitAt, getDomain, getDoubleBitAt, getFloatBitAt, getIntBitAt, getLongBitAt, getPrecision, getShortBitAt, getUnlimitedDecimalBitAt, getUnlimitedIntegerBitAt, halfDown, halfEven, halfUp, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hyperbolicCosine, hyperbolicSine, hyperbolicTangent, hypotenuseWith, hypotenuseWithNumber, hypotenuseWithScalar, indexOutOfBoundsAt, induceScalarSize, intGCD, intMaskAt, intModularInverse, intModularQuotient, intNotMaskAt, intValue, invalidate, isAlphabetic, isBmpCodePoint, isConfigurable, isCountable, isDigit, isElastic, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqualToScalar, isExpandable, isFalse, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqualToScalar, isGreaterThanScalar, isHighSurrogate, isIdentifierIgnorable, isIdeographic, isImaginary, isISOControl, isJavaIdentifierPart, isJavaIdentifierStart, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqualToScalar, isLessThanScalar, isLetter, isLetterOrDigit, isLowerCase, isLowSurrogate, isMirrored, isMutable, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqualToScalar, isReducible, isSupplementaryCodePoint, isSurrogate, isTitleCase, isTrue, isUnicode, isUnicodeIdentifierPart, isUnicodeIdentifierStart, isUnique, isUpperCase, isValid, isValidCodePoint, isWhitespace, longGCD, longMaskAt, longModularInverse, longModularQuotient, longNotMaskAt, longSize, longValue, milliseconds, mod, mod, mod, mod, mod, mod, mod, modOfScalar, nanoseconds, naturalLog, naturalLogPlusOne, or, orOfScalar, power, power, powerOfNumber, powerOfScalar, product, product, product, productOfScalar, promoteTo, quotient, quotient, quotient, quotientOfScalar, radians, random, setByteBitAt, setCharBitAt, setDoubleBitAt, setE, setFalse, setFloatBitAt, setIntBitAt, setLongBitAt, setNegativeInfinity, setPi, setPositiveInfinity, setShortBitAt, setTrue, setUnlimitedDecimalBitAt, setUnlimitedIntegerBitAt, shortMaskAt, shortNotMaskAt, shortValue, signum, sine, size, squareRoot, sum, sum, sum, sumOfScalar, tangent, toBoolean, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toBooleanArray, toByteArray, toCharacter, toCodePoint, toScalar, toUnlimitedInteger, unlimitedIntegerMaskAt, unlimitedIntegerNotMaskAt, up, xor, xorOfScalarclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareToReal, compareToReal, compareToReal, isEqual, isEqual, isEqualToReal, isGreater, isGreater, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqualToReal, isGreaterThanReal, isLess, isLess, isLessOrEqual, isLessOrEqual, isLessOrEqualToReal, isLessThanReal, isNotEqual, isNotEqual, isNotEqualToRealcompareToNumber, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToZero, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqualToNumber, isEqualToScalar, isFalse, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqualToNumber, isGreaterOrEqualToScalar, isGreaterThanNumber, isGreaterThanScalar, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqualToNumber, isLessOrEqualToScalar, isLessThanNumber, isLessThanScalar, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqualToNumber, isNotEqualToScalar, isTrue, toBoolean, toCharacter, toCodePointisImaginary, isValid, signumisAlphabetic, isBmpCodePoint, isDigit, isHighSurrogate, isIdentifierIgnorable, isIdeographic, isISOControl, isJavaIdentifierPart, isJavaIdentifierStart, isLetter, isLetterOrDigit, isLowerCase, isLowSurrogate, isMirrored, isSupplementaryCodePoint, isSurrogate, isTitleCase, isUnicode, isUnicodeIdentifierPart, isUnicodeIdentifierStart, isUpperCase, isValidCodePoint, isWhitespacegetPrecisioninduceRealSizeinduceScalarSizegetDomain, longSize, sizeisConfigurable, isCountable, isElastic, isExpandable, isReducible, isUniquetoRealtoScalarand, andOfReal, angleWithReal, difference, difference, differenceOfReal, gcd, gcdOfReal, hypotenuseWithReal, mod, mod, modOfReal, or, orOfReal, powerOfReal, product, product, productOfReal, quotient, quotient, quotientOfReal, sum, sum, sumOfReal, xor, xorOfRealand, andOfNumber, andOfScalar, angleWith, angleWithNumber, angleWithScalar, arcCosine, arcSine, arcTangent, base10Log, ceiling, cosine, cubeRoot, degrees, 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, modOfNumber, modOfScalar, nanoseconds, naturalLog, naturalLogPlusOne, or, orOfNumber, orOfScalar, power, power, powerOfNumber, powerOfScalar, product, product, product, productOfNumber, productOfScalar, quotient, quotient, quotient, quotientOfNumber, quotientOfScalar, radians, random, setE, setNegativeInfinity, setPi, setPositiveInfinity, sine, squareRoot, sum, sum, sum, sumOfNumber, sumOfScalar, tangent, up, xor, xorOfNumber, xorOfScalarsetFalse, setTrueassertPrecision, promoteToassertDomainprotected EnumerationPrimitive(Enum<?>[] values, Enum<?> aValue)
public EnumerationPrimitive()
public EnumerationPrimitive(Class<E> anEnumerationClass)
public EnumerationPrimitive(Enum<?> aValue)
public EnumerationPrimitive(Enum<?>[] values)
public final EnumerationPrimitive copy()
Replicatorpublic final EnumerationPrimitive copyUsing(int aValue)
ScalarReplicatoraValue - a new valuepublic final EnumerationPrimitive copyUsingText(CharSequence aValue)
PrimitiveReplicatorcopyUsingText in interface PrimitiveReplicator<EnumerationPrimitive>copyUsingText in interface TextReplicator<EnumerationPrimitive>copyUsingText in class AbstractNumericPrimitive<EnumerationPrimitive>aValue - a new valuepublic final ConcurrencyStrategy getConcurrency()
public final StructureStrategy getStructureStrategy()
getStructureStrategy in interface SealedAlgebraicStructuregetStructureStrategy in class AbstractModuloIntegerPrimitive<EnumerationPrimitive>public final int intValue()
intValue in interface SealedIntegerValueintValue in class Numberintpublic <E extends Enum<E>> EnumerationPrimitive setEnumeration(E aValue) throws UnsupportedOperationException, ArithmeticException, IllegalArgumentException, NullPointerException
MutableScalarenumeration instance, then answer this object (facilitates
chaining)setEnumeration in interface MutableScalar<EnumerationPrimitive>setEnumeration in class AbstractScalar<EnumerationPrimitive>aValue - a system-supported enumerationUnsupportedOperationException - 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 EnumerationPrimitive setPrimitive(SealedPrimitive<?> aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException, NullPointerException
MutablePrimitivesetPrimitive in interface MutablePrimitive<EnumerationPrimitive>setPrimitive in class AbstractIntegerPrimitive<EnumerationPrimitive>aValue - a primitiveUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the specified value was incommensurate with this object's
specificationArithmeticException - the numeric value provided was incompatible with with algebraic
interpretation of this objectNullPointerException - a null value was provided though this object does not
accept null valuespublic final EnumerationPrimitive setReal(SealedReal<?> aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException, NullPointerException
MutableRealprimitive and answer this object (facilitates chaining)setReal in interface MutableReal<EnumerationPrimitive>setReal in class AbstractIntegerPrimitive<EnumerationPrimitive>aValue - a numeric primitiveUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the specified value was incommensurate with this object's
specificationArithmeticException - the numeric value provided was incompatible with with algebraic
interpretation of this objectNullPointerException - a null value was provided though this object does not
accept null valuespublic final EnumerationPrimitive setScalar(int aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException
MutableIntegerValueint value and answer this
object (facilitates chaining)aValue - an int valueUnsupportedOperationException - if this object's value cannot be changedIllegalArgumentException - if the specified value was incommensurate with this object's
specificationArithmeticException - the numeric value provided was incompatible with with algebraic
interpretation of this objectpublic final EnumerationPrimitive setScalar(SealedScalar<?> aValue) throws UnsupportedOperationException, IllegalArgumentException, ArithmeticException, NullPointerException
MutableScalarsetScalar in interface MutableScalar<EnumerationPrimitive>setScalar in class AbstractIntegerPrimitive<EnumerationPrimitive>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 EnumerationPrimitive setText(CharSequence content) throws UnsupportedOperationException, NullPointerException, IllegalArgumentException
MutableTextValuetext value and answer
this object (facilitates chaining)setText in interface MutableTextValue<EnumerationPrimitive>setText in class AbstractNumericPrimitive<EnumerationPrimitive>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 <E extends Enum<E>> E toEnumeration(Class<E> anEnumerationClass) throws ArithmeticException, IllegalArgumentException, NullPointerException
SealedScalarenumerationtoEnumeration in interface SealedScalar<EnumerationPrimitive>toEnumeration in class AbstractScalar<EnumerationPrimitive>anEnumerationClass - the class of enumeration to convert toArithmeticException - 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 String toString()
toString in interface CharSequencetoString in interface SealedKerneltoString in class AbstractIntegerPrimitive<EnumerationPrimitive>Copyright © 2006-2012 Ware-Squared Software Development. All Rights Reserved.