ACCUMULATOR - this Accumulator typepublic abstract class AbstractAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>> extends AbstractPrimitiveWrapper<ACCUMULATOR> implements Accumulator<ACCUMULATOR>
Accumulator behaviorNaN, ONEI, ZERO_DOUBLE_LONG_BITS, ZERO_FLOAT_INT_BITS, ZEROI| Constructor and Description |
|---|
AbstractAccumulator() |
AbstractAccumulator(Accumulator<?> anAccumulator) |
AbstractAccumulator(net.sf.jupperware.association.AssociativeList<Accumulator<?>,Accumulator<?>> members) |
| Modifier and Type | Method and Description |
|---|---|
ControlIntention |
apply(Accumulator<?> aStack)
Apply this Accumulator's association function to the specified
Accumulator, using it as a parameter and result stack
|
void |
clear()
Same as
Collection.clear(). |
ACCUMULATOR |
clearContents()
Clear all elements of this structure and answer this object (facilitates
chaining}.
For text primitives all characters will be removed in an exact analog to clear(). |
ACCUMULATOR |
copy()
Produce a replica of this object
|
ACCUMULATOR |
copySharing(Accumulator<?> anAccumulator)
Using this Accumulator as a factory, and where possible, produce a new
Accumulator of the same type but directly sharing the
target Primitive and its
relationship collection. |
ACCUMULATOR |
copySharing(net.sf.jupperware.association.AssociativeList<Accumulator<?>,Accumulator<?>> members)
Using this Accumulator as a factory, and where possible, produce a new
Accumulator of the same type but directly share the specified
relationship collection.
|
ACCUMULATOR |
copySharing(Primitive<?> aTarget)
Using this Accumulator as a factory, and where possible, produce a new
Accumulator of the same type but directly share the specified
Primitive target. |
ACCUMULATOR |
copyUsing(BigDecimal aValue)
Using this real as a factory, produce a new real of the
same type but initialized with the value specified
|
ACCUMULATOR |
copyUsing(BigInteger aValue)
Using this real as a factory, produce a new real of the
same type but initialized with the value specified
|
ACCUMULATOR |
copyUsing(boolean aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
ACCUMULATOR |
copyUsing(byte aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
ACCUMULATOR |
copyUsing(char aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
ACCUMULATOR |
copyUsing(double aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
ACCUMULATOR |
copyUsing(float aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
ACCUMULATOR |
copyUsing(int aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
ACCUMULATOR |
copyUsing(long aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
ACCUMULATOR |
copyUsing(short aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
ACCUMULATOR |
copyUsingAccumulator(SealedAccumulator<?> anAccumulator)
|
ACCUMULATOR |
copyUsingPrimitive(SealedPrimitive<?> aValue)
Using this primitive as a factory, produce a new primitive of the same
type but initialized with the value specified
|
ACCUMULATOR |
copyUsingReal(SealedReal<?> aValue)
Using this real as a factory, produce a new real of the
same type but initialized with the value specified
|
ACCUMULATOR |
copyUsingScalar(SealedScalar<?> aValue)
Using this scalar as a factory, produce a new scalar of the
same type but initialized with the value specified
|
ACCUMULATOR |
copyUsingText(CharSequence aValue)
Using this text as a factory, produce new text of the same type but
initialized with the value specified
|
boolean |
equals(Object anObject) |
Accumulator<?> |
first()
A convenience function to return the first, or zeroth, relationship in
this Accumulator's
#members() collection |
Domain |
getDomain() |
StructureStrategy |
getStructureStrategy() |
int |
hashCode() |
boolean |
isConfigurable()
|
boolean |
isCountable()
Answer
true if this structure contains a countable number of
elements. |
boolean |
isElastic()
Answer
true if this structure, in principle, can be
reduced via element removal or expanded via element addition. |
boolean |
isEmpty()
Answer
true if this structure contains no elements. |
boolean |
isEqualToAccumulator(SealedAccumulator<?> anAccumulator)
Compare this Accumulator for equality against another.
|
boolean |
isExpandable() |
boolean |
isOrdered()
Answer
true if the elements of this structure necessarily
share a partial or total order between each other within the context of
this structure. |
boolean |
isReducible()
Answer
true if this structure, in principle, can be
reduced via element removal. |
boolean |
isUnique() |
Iterator<Accumulator<?>> |
iterator() |
Accumulator<?> |
last()
A convenience function to return the last, or highest order, relationship
in this Accumulator's
#members() collection |
long |
longSize()
Returns the number of elements in this algebraic structure as a
long scalar. |
net.sf.jupperware.association.AssociativeList<Accumulator<?>,Accumulator<?>> |
members() |
Accumulator<?> |
peek()
A convenience alias for
SealedAccumulator.last() |
Accumulator<?> |
pop()
Remove and return the last (highest order) member from this Accumulator's
relationship collection |
ACCUMULATOR |
push(Accumulator<?> aMember)
A convenience function to append a new member to the end of this
Accumulator's
relationship
collection |
ACCUMULATOR |
push(Accumulator<?> aKey,
Accumulator<?> aMember)
A convenience function to append a new keyed (named) member to the end of
this Accumulator's
relationship
collection |
ACCUMULATOR |
push(BigDecimal aMember)
A convenience function to append a new member to the end of this
Accumulator's
relationship
collection |
ACCUMULATOR |
push(BigInteger aMember)
A convenience function to append a new member to the end of this
Accumulator's
relationship
collection |
ACCUMULATOR |
push(boolean aMember)
A convenience function to append a new member to the end of this
Accumulator's
relationship
collection |
ACCUMULATOR |
push(byte aMember)
A convenience function to append a new member to the end of this
Accumulator's
relationship
collection |
ACCUMULATOR |
push(char aMember)
A convenience function to append a new member to the end of this
Accumulator's
relationship
collection |
ACCUMULATOR |
push(double aMember)
A convenience function to append a new member to the end of this
Accumulator's
relationship
collection |
ACCUMULATOR |
push(float aMember)
A convenience function to append a new member to the end of this
Accumulator's
relationship
collection |
ACCUMULATOR |
push(int aMember)
A convenience function to append a new member to the end of this
Accumulator's
relationship
collection |
ACCUMULATOR |
push(long aMember)
A convenience function to append a new member to the end of this
Accumulator's
relationship
collection |
ACCUMULATOR |
push(short aMember)
A convenience function to append a new member to the end of this
Accumulator's
relationship
collection |
ACCUMULATOR |
push(String aKey,
Accumulator<?> aMember)
A convenience function to append a new keyed (named) member to the end of
this Accumulator's
relationship
collection |
ACCUMULATOR |
pushPrimitive(Primitive<?> aMember)
A convenience function to append a new member to the end of this
Accumulator's
relationship
collection |
ACCUMULATOR |
pushText(CharSequence aMember)
A convenience function to append a new member to the end of this
Accumulator's
relationship
collection |
ACCUMULATOR |
replaceRelationshipsUsing(Accumulator<?> anAccumulator)
Attempt to change this Accumulator's relationships to the relationships
of the specified Accumulator (shallow copy)
|
ACCUMULATOR |
setAccumulator(Accumulator<?> anAccumulator)
|
ACCUMULATOR |
shareTargetWith(Accumulator<?> anAccumulator)
|
int |
size()
Returns the number of elements in this algebraic structure.
|
Accumulator<?> |
toAccumulator()
If this object is already
Accumulator then simply
call its AccumulatorReplicator.copy() function, otherwise convert it to a new
Accumulator instance |
String |
toFunctionName()
Answer the name of the function associated with this Accumulator type
|
String |
toString() |
absoluteValue, and, and, and, and, and, and, and, angleWith, append, append, append, append, append, append, append, append, append, append, append, append, append, append, appendCodePoint, arcCosine, arcSine, arcTangent, assertDomain, assertPrecision, base10Log, booleanPostDecrement, booleanPostIncrement, booleanValue, bytePostDecrement, bytePostIncrement, byteValue, charAt, charPostDecrement, charPostIncrement, charValue, clearText, codePointAt, codePointBefore, codePointCount, compareTo, compareToPrimitive, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToText, compareToZero, cosine, cube, cubeRoot, decrement, degrees, delete, deleteCharAt, difference, difference, difference, difference, difference, difference, difference, difference, difference, difference, doublePostDecrement, doublePostIncrement, doubleValue, exponential, exponentialLessOne, floatPostDecrement, floatPostIncrement, floatValue, gcd, gcd, gcd, gcd, gcd, gcd, getConcurrency, getPrecision, getTarget, hyperbolicCosine, hyperbolicSine, hyperbolicTangent, increment, indexOfText, indexOfText, inducePostDecrement, inducePostDecrement, inducePostDecrement, inducePostIncrement, inducePostIncrement, inducePostIncrement, inducePrimitiveMaximum, inducePrimitiveMinimum, inducePrimitiveValue, induceRealMaximum, induceRealMinimum, induceRealSize, induceRealValue, induceScalarMaximum, induceScalarMinimum, induceScalarSize, induceScalarValue, induceTextSize, induceTextValue, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, intPostDecrement, intPostIncrement, intValue, invalidate, inverse, isAlphabetic, isBmpCodePoint, isDigit, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqualToPrimitive, isEqualToText, 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, isPositive, isPositiveFinite, isPositiveInfinity, isReal, isSupplementaryCodePoint, isSurrogate, isText, isTitleCase, isUnicode, isUnicodeIdentifierPart, isUnicodeIdentifierStart, isUnity, isUpperCase, isValidCodePoint, isWhitespace, isZero, length, longPostDecrement, longPostIncrement, longValue, lowerCase, milliseconds, mod, mod, mod, mod, mod, mod, mod, mod, mod, mod, nanoseconds, naturalLog, naturalLogPlusOne, negate, not, or, or, or, or, or, or, or, power, power, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, product, product, product, product, product, product, product, product, product, product, promoteTo, quotient, quotient, quotient, quotient, quotient, quotient, quotient, quotient, quotient, quotient, radians, random, replace, replace, replaceAll, replaceCharacter, replaceFirst, reverse, round, setBoolean, setCharacter, setCharAt, setE, setEnumeration, setFalse, setLength, setMaximum, setMinimum, setNegativeInfinity, setPi, setPositiveInfinity, setPrimitive, setReal, setReal, setScalar, setScalar, setScalar, setScalar, setScalar, setScalar, setScalar, setScalar, setScalar, setText, setTrue, setUnity, setZero, shiftLeft, shiftRight, shiftRightExtendZero, shortPostDecrement, shortPostIncrement, shortValue, signum, sine, square, squareRoot, subSequence, substring, substring, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum, swapPrimitives, tangent, textPostDecrement, textPostIncrement, titleCase, toBoolean, toCharacter, toCodePoint, toEnumeration, toNumber, toPrimitive, toReal, toScalar, toUnlimitedDecimal, toUnlimitedInteger, trim, unlimitedDecimalPostDecrement, unlimitedDecimalPostIncrement, unlimitedIntegerPostDecrement, unlimitedIntegerPostIncrement, upperCase, xor, xor, xor, xor, xor, xor, xorandOfPrimitive, angleWithPrimitive, differenceOfPrimitive, hypotenuseWithPrimitive, modOfPrimitive, orOfPrimitive, powerOfPrimitive, productOfPrimitive, quotientOfPrimitive, sumOfPrimitive, xorOfPrimitiveandOfNumber, 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, setReal, sumOfNumber, sumOfReal, unlimitedIntegerModularInverse, xorOfNumber, xorOfRealandOfScalar, 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, xorOfScalarclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTarget, isTargetReplaceablecopySharingshareTargetswapPrimitivesinducePostDecrement, inducePostIncrement, inducePrimitiveMaximum, inducePrimitiveMinimum, inducePrimitiveValuecompareToPrimitive, isEqualToPrimitive, isGreaterOrEqualToPrimitive, isGreaterThanPrimitive, isLessOrEqualToPrimitive, isLessThanPrimitive, isNotEqualToPrimitivecompareTotoPrimitiveandOfPrimitive, angleWithPrimitive, differenceOfPrimitive, hypotenuseWithPrimitive, modOfPrimitive, orOfPrimitive, powerOfPrimitive, productOfPrimitive, quotientOfPrimitive, setBoolean, setCharacter, setPrimitive, sumOfPrimitive, xorOfPrimitiveinducePostDecrement, inducePostIncrement, induceRealValueinducePostDecrement, inducePostIncrement, induceScalarValuecompareToReal, compareToReal, compareToReal, isEqual, isEqual, isEqualToReal, isGreater, isGreater, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqualToReal, isGreaterThanReal, isLess, isLess, isLessOrEqual, isLessOrEqual, isLessOrEqualToReal, isLessThanReal, isNotEqual, isNotEqual, isNotEqualToRealcompareToNumber, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToScalar, compareToZero, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqual, isEqualToNumber, isEqualToScalar, isFalse, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreater, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqual, isGreaterOrEqualToNumber, isGreaterOrEqualToScalar, isGreaterThanNumber, isGreaterThanScalar, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLess, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqual, isLessOrEqualToNumber, isLessOrEqualToScalar, isLessThanNumber, isLessThanScalar, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqual, isNotEqualToNumber, isNotEqualToScalar, isTrue, toBoolean, toCharacter, toCodePoint, toEnumeration, toNumbergetConcurrencyisFinite, isImaginary, isInfinity, isInvalid, isMaximum, isMinimum, isModulo, isNegative, isNegativeFinite, isNegativeInfinity, isPositive, isPositiveFinite, isPositiveInfinity, isReal, isUnity, isValid, isZero, signumisAlphabetic, isBmpCodePoint, isDigit, isHighSurrogate, isIdentifierIgnorable, isIdeographic, isISOControl, isJavaIdentifierPart, isJavaIdentifierStart, isLetter, isLetterOrDigit, isLowerCase, isLowSurrogate, isMirrored, isSupplementaryCodePoint, isSurrogate, isTitleCase, isUnicode, isUnicodeIdentifierPart, isUnicodeIdentifierStart, isUpperCase, isValidCodePoint, isWhitespacebooleanValuebyteValuecharValuedoubleValuefloatValueintValuelongValueshortValueinduceRealMaximum, induceRealMinimumgetPrecision, induceScalarMaximum, induceScalarMinimuminduceRealSizeinduceScalarSizetoRealtoScalarand, andOfReal, angleWithReal, difference, difference, differenceOfReal, gcd, gcdOfReal, hypotenuseWithReal, mod, mod, modOfReal, or, orOfReal, powerOfReal, product, product, productOfReal, quotient, quotient, quotientOfReal, setReal, sum, sum, sumOfReal, xor, xorOfRealabsoluteValue, and, and, and, and, and, and, andOfNumber, andOfScalar, angleWith, angleWithNumber, angleWithScalar, arcCosine, arcSine, arcTangent, base10Log, ceiling, cosine, cube, cubeRoot, decrement, 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, increment, invalidate, inverse, milliseconds, mod, mod, mod, mod, mod, mod, mod, mod, modOfNumber, modOfScalar, nanoseconds, naturalLog, naturalLogPlusOne, negate, not, 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, round, setE, setEnumeration, setMaximum, setMinimum, setNegativeInfinity, setNumber, setPi, setPositiveInfinity, setScalar, setUnity, setZero, shiftLeft, shiftRight, shiftRightExtendZero, sine, square, squareRoot, sum, sum, sum, sum, sum, sum, sum, sum, sumOfNumber, sumOfScalar, tangent, up, xor, xor, xor, xor, xor, xor, xorOfNumber, xorOfScalarbooleanPostDecrement, booleanPostIncrement, setFalse, setScalar, setTruebytePostDecrement, bytePostIncrement, setScalarcharPostDecrement, charPostIncrement, setScalardoublePostDecrement, doublePostIncrement, setScalarfloatPostDecrement, floatPostIncrement, setScalarintPostDecrement, intPostIncrement, setScalarlongPostDecrement, longPostIncrement, setScalarsetScalar, shortPostDecrement, shortPostIncrementassertPrecision, promoteToassertDomaintoUnlimitedIntegersetReal, unlimitedIntegerPostDecrement, unlimitedIntegerPostIncrementtoUnlimitedDecimalsetReal, unlimitedDecimalPostDecrement, unlimitedDecimalPostIncrementinduceTextSize, induceTextValuecompareToText, isEqualToText, isGreaterOrEqualToText, isGreaterThanText, isLessOrEqualToText, isLessThanText, isNotEqualToTextcodePointAt, codePointBefore, codePointCount, indexOfText, indexOfText, substring, substringcharAt, length, subSequenceisTextappend, append, append, append, append, append, append, append, append, append, append, append, append, append, appendCodePoint, clearText, delete, deleteCharAt, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, lowerCase, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, prepend, replace, replace, replaceAll, replaceCharacter, replaceFirst, reverse, setCharAt, setLength, setText, textPostDecrement, textPostIncrement, titleCase, trim, upperCasepublic AbstractAccumulator()
public AbstractAccumulator(Accumulator<?> anAccumulator)
public AbstractAccumulator(net.sf.jupperware.association.AssociativeList<Accumulator<?>,Accumulator<?>> members)
public ControlIntention apply(Accumulator<?> aStack)
Accumulatorapply in interface Accumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aStack - a parameter and result stackaction to be taken by
the callerpublic void clear() throws UnsupportedOperationException
MutableTextValueCollection.clear(). So as to maintain compatibility, this
function will not return the customary reference back to this primitive.
In text primitives, this function will clear the current text contentsclear in interface MutableAlgebraicStructure<ACCUMULATOR extends Accumulator<ACCUMULATOR>>clear in interface MutableTextValue<ACCUMULATOR extends Accumulator<ACCUMULATOR>>clear in class AbstractPrimitiveWrapper<ACCUMULATOR extends Accumulator<ACCUMULATOR>>UnsupportedOperationException - if this text cannot be clearedMutableTextValue.clearText();,
Collection.clear(),
MutableAlgebraicStructure.clearContents()public ACCUMULATOR clearContents() throws UnsupportedOperationException
MutableAlgebraicStructureclear(). For bit tuples such as scalar primitives, this will reset all bits zero
since those elements cannot be removed. For
unlimited primitives all bytes in the
representation will be removed, producing zero.clear(), which does not return a value.
This function, in answering this object, facilitates operation chaining.clearContents in interface MutableAlgebraicStructure<ACCUMULATOR extends Accumulator<ACCUMULATOR>>clearContents in class AbstractPrimitiveWrapper<ACCUMULATOR extends Accumulator<ACCUMULATOR>>UnsupportedOperationException - if this object's value cannot be changedMutableAlgebraicStructure.clear(),
Collection.clear(),
MutableTextValue.clearText();public ACCUMULATOR copy()
Replicatorcopy in interface AccumulatorReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>copy in interface Replicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>public ACCUMULATOR copySharing(Accumulator<?> anAccumulator)
AccumulatorReplicatortarget Primitive and its
relationship collection. Where direct
sharing is not possible, shallow copies will be performed instead.copySharing in interface AccumulatorReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>anAccumulator - an Accumulator to share withtarget Primitive
and and its relationship collectionpublic ACCUMULATOR copySharing(net.sf.jupperware.association.AssociativeList<Accumulator<?>,Accumulator<?>> members)
AccumulatorReplicatorcopySharing in interface AccumulatorReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>members - the relationship collection to sharepublic ACCUMULATOR copySharing(Primitive<?> aTarget)
AccumulatorReplicatorPrimitive target. Where direct sharing is not possible, shallow
copies will be performed instead.copySharing in interface AccumulatorReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>public ACCUMULATOR copyUsing(BigDecimal aValue)
RealReplicatorcopyUsing in interface RealReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aValue - a new valuepublic ACCUMULATOR copyUsing(BigInteger aValue)
RealReplicatorcopyUsing in interface RealReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aValue - a new valuepublic ACCUMULATOR copyUsing(boolean aValue)
ScalarReplicatorcopyUsing in interface ScalarReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aValue - a new valuepublic ACCUMULATOR copyUsing(byte aValue)
ScalarReplicatorcopyUsing in interface ScalarReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aValue - a new valuepublic ACCUMULATOR copyUsing(char aValue)
ScalarReplicatorcopyUsing in interface ScalarReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aValue - a new valuepublic ACCUMULATOR copyUsing(double aValue)
ScalarReplicatorcopyUsing in interface ScalarReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aValue - a new valuepublic ACCUMULATOR copyUsing(float aValue)
ScalarReplicatorcopyUsing in interface ScalarReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aValue - a new valuepublic ACCUMULATOR copyUsing(int aValue)
ScalarReplicatorcopyUsing in interface ScalarReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aValue - a new valuepublic ACCUMULATOR copyUsing(long aValue)
ScalarReplicatorcopyUsing in interface ScalarReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aValue - a new valuepublic ACCUMULATOR copyUsing(short aValue)
ScalarReplicatorcopyUsing in interface ScalarReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aValue - a new valuepublic ACCUMULATOR copyUsingAccumulator(SealedAccumulator<?> anAccumulator)
AccumulatorReplicatortarget Primitive and a shallow copy of the
members of the specified AccumulatorcopyUsingAccumulator in interface AccumulatorReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>anAccumulator - an Accumulator to copy fromtarget Primitive
and a shallow copy of the members
of the specified Accumulatorpublic ACCUMULATOR copyUsingPrimitive(SealedPrimitive<?> aValue)
PrimitiveReplicatorcopyUsingPrimitive in interface AccumulatorReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>copyUsingPrimitive in interface PrimitiveReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aValue - a new valuepublic ACCUMULATOR copyUsingReal(SealedReal<?> aValue)
RealReplicatorcopyUsingReal in interface RealReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aValue - a new valuepublic ACCUMULATOR copyUsingScalar(SealedScalar<?> aValue)
ScalarReplicatorcopyUsingScalar in interface ScalarReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aValue - a new valuepublic ACCUMULATOR copyUsingText(CharSequence aValue)
TextReplicatorcopyUsingText in interface PrimitiveReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>copyUsingText in interface TextReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aValue - a new valuepublic boolean equals(Object anObject)
equals in interface SealedKernelequals in class AbstractPrimitiveWrapper<ACCUMULATOR extends Accumulator<ACCUMULATOR>>public Accumulator<?> first() throws NoSuchElementException
SealedAccumulator#members() collectionfirst in interface SealedAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>#members() collectionNoSuchElementException - this Accumulator's relationship collection was emptypublic Domain getDomain()
getDomain in interface SealedAlgebraicStructuregetDomain in class AbstractPrimitiveWrapper<ACCUMULATOR extends Accumulator<ACCUMULATOR>>public StructureStrategy getStructureStrategy()
getStructureStrategy in interface SealedAlgebraicStructuregetStructureStrategy in class AbstractPrimitiveWrapper<ACCUMULATOR extends Accumulator<ACCUMULATOR>>public int hashCode()
hashCode in interface SealedKernelhashCode in class AbstractPrimitiveWrapper<ACCUMULATOR extends Accumulator<ACCUMULATOR>>public boolean isConfigurable()
StructurePropertiestrue 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 StructurePropertiesisConfigurable in class AbstractPrimitiveWrapper<ACCUMULATOR extends Accumulator<ACCUMULATOR>>true if the implementation of this object can be changedpublic boolean isCountable()
StructurePropertiestrue if this structure contains a countable number of
elements. A countable set is a set with the same cardinality as some
subset of the set of natural numbers. A set that is not countable
contains an infinite number of elements.isCountable in interface StructurePropertiesisCountable in class AbstractPrimitiveWrapper<ACCUMULATOR extends Accumulator<ACCUMULATOR>>true if this structure contains a countable number
of elements, otherwise false if it contains an infinite
number of elementspublic boolean isElastic()
StructurePropertiestrue if this structure, in principle, can be
reduced via element removal or expanded via element addition. Empty
collections are, in principle, reducible, but read-only
collections are neither reducible or expandable.isElastic in interface StructurePropertiesisElastic in class AbstractPrimitiveWrapper<ACCUMULATOR extends Accumulator<ACCUMULATOR>>true if this structure can be either
reduced or expandedpublic 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 AbstractPrimitiveWrapper<ACCUMULATOR extends Accumulator<ACCUMULATOR>>true if this structure contains no elementspublic boolean isEqualToAccumulator(SealedAccumulator<?> anAccumulator)
SealedAccumulatortarget Primitives
are equal, and the contents of their members collections are equal.isEqualToAccumulator in interface SealedAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>true if the values of this Accumulator's
target Primitive if equal to the target
Primitive of the specified Accumulator, and if the content of the
members collections are both
equalpublic boolean isExpandable()
isExpandable in interface StructurePropertiesisExpandable in class AbstractPrimitiveWrapper<ACCUMULATOR extends Accumulator<ACCUMULATOR>>true if this structure can be expanded via element
insertionpublic boolean isOrdered()
StructurePropertiestrue if the elements of this structure necessarily
share a partial or total order between each other within the context of
this structure. Ordering does not necessarily imply a simple sequencing
between randomly selected elements, but rather a necessary sorting order
between elements independent of the sets they are related by. A
SortedSet is ordered, not merely because its elements are de
facto sorted, but because the SortedSet defines a universe in
which only sortable elements can exist and it defines a sorting function
which places those elements in their sorted order at the time of
iteration. An ordered
set has elements with values that are reflexive, antisymmetric, and
transitive relative to each other. Necessarily empty sets are not
considered ordered.isOrdered in interface StructurePropertiesisOrdered in class AbstractPrimitiveWrapper<ACCUMULATOR extends Accumulator<ACCUMULATOR>>true if the structure has either a partial or total order
over its elementspublic boolean isReducible()
StructurePropertiestrue if this structure, in principle, can be
reduced via element removal. Empty collections are, in principle,
reducible, but read-only collections are not.isReducible in interface StructurePropertiesisReducible in class AbstractPrimitiveWrapper<ACCUMULATOR extends Accumulator<ACCUMULATOR>>true if this structure, in principle, can be
reduced via element removalpublic boolean isUnique()
isUnique in interface StructurePropertiesisUnique in class AbstractPrimitiveWrapper<ACCUMULATOR extends Accumulator<ACCUMULATOR>>true if the elements in this structure are, by definition
of the structure's algebra, unique (e.g., sets)public Iterator<Accumulator<?>> iterator()
iterator in interface Iterable<Accumulator<?>>public Accumulator<?> last() throws NoSuchElementException
SealedAccumulator#members() collectionlast in interface SealedAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>#members() collectionNoSuchElementException - this Accumulator's relationship collection was emptypublic long longSize()
SealedAlgebraicStructurelong scalar. If the structure contains more than
Long.MAX_VALUE elements, returns Long.MAX_VALUE.longSize in interface SealedAlgebraicStructurelongSize in class AbstractPrimitiveWrapper<ACCUMULATOR extends Accumulator<ACCUMULATOR>>long scalarCollection.size(),
SealedAlgebraicStructure.size()public final net.sf.jupperware.association.AssociativeList<Accumulator<?>,Accumulator<?>> members()
members in interface SealedAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>public Accumulator<?> peek() throws NoSuchElementException
SealedAccumulatorSealedAccumulator.last()peek in interface SealedAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>#members() collectionNoSuchElementException - this Accumulator's relationship collection was emptypublic Accumulator<?> pop() throws UnsupportedOperationException, IllegalStateException, NoSuchElementException
MutableAccumulatorrelationship collectionpop in interface MutableAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>UnsupportedOperationException - this Accumulator's relationship collection could not changedIllegalStateException - this Accumulator's relationship collection could not be changed
at this timeNoSuchElementException - this Accumulator's relationship collection was emptypublic ACCUMULATOR push(Accumulator<?> aMember) throws UnsupportedOperationException, NullPointerException, IllegalStateException
MutableAccumulatorrelationship
collectionpush in interface MutableAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aMember - a new relationshipUnsupportedOperationException - this Accumulator's relationship collection could not be changedNullPointerException - a null value was provided where none was expectedIllegalStateException - this Accumulator's relationship collection could not be changed
at this timepublic ACCUMULATOR push(Accumulator<?> aKey, Accumulator<?> aMember) throws UnsupportedOperationException, NullPointerException, IllegalStateException
MutableAccumulatorrelationship
collectionpush in interface MutableAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aKey - a new key (name)aMember - a new relationshipUnsupportedOperationException - this Accumulator's relationship collection could not changedNullPointerException - a null value was provided where none was expectedIllegalStateException - this Accumulator's relationship collection could not be changed
at this timepublic ACCUMULATOR push(BigDecimal aMember) throws UnsupportedOperationException, NullPointerException, IllegalStateException
MutableAccumulatorrelationship
collectionpush in interface MutableAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aMember - a new relationshipUnsupportedOperationException - this Accumulator's relationship collection could not be changedNullPointerException - a null value was provided where none was expectedIllegalStateException - this Accumulator's relationship collection could not be changed
at this timepublic ACCUMULATOR push(BigInteger aMember) throws UnsupportedOperationException, NullPointerException, IllegalStateException
MutableAccumulatorrelationship
collectionpush in interface MutableAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aMember - a new relationshipUnsupportedOperationException - this Accumulator's relationship collection could not be changedNullPointerException - a null value was provided where none was expectedIllegalStateException - this Accumulator's relationship collection could not be changed
at this timepublic ACCUMULATOR push(boolean aMember) throws UnsupportedOperationException, NullPointerException, IllegalStateException
MutableAccumulatorrelationship
collectionpush in interface MutableAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aMember - a new relationshipUnsupportedOperationException - this Accumulator's relationship collection could not be changedNullPointerException - a null value was provided where none was expectedIllegalStateException - this Accumulator's relationship collection could not be changed
at this timepublic ACCUMULATOR push(byte aMember) throws UnsupportedOperationException, NullPointerException, IllegalStateException
MutableAccumulatorrelationship
collectionpush in interface MutableAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aMember - a new relationshipUnsupportedOperationException - this Accumulator's relationship collection could not be changedNullPointerException - a null value was provided where none was expectedIllegalStateException - this Accumulator's relationship collection could not be changed
at this timepublic ACCUMULATOR push(char aMember) throws UnsupportedOperationException, NullPointerException, IllegalStateException
MutableAccumulatorrelationship
collectionpush in interface MutableAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aMember - a new relationshipUnsupportedOperationException - this Accumulator's relationship collection could not be changedNullPointerException - a null value was provided where none was expectedIllegalStateException - this Accumulator's relationship collection could not be changed
at this timepublic ACCUMULATOR push(double aMember) throws UnsupportedOperationException, NullPointerException, IllegalStateException
MutableAccumulatorrelationship
collectionpush in interface MutableAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aMember - a new relationshipUnsupportedOperationException - this Accumulator's relationship collection could not be changedNullPointerException - a null value was provided where none was expectedIllegalStateException - this Accumulator's relationship collection could not be changed
at this timepublic ACCUMULATOR push(float aMember) throws UnsupportedOperationException, NullPointerException, IllegalStateException
MutableAccumulatorrelationship
collectionpush in interface MutableAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aMember - a new relationshipUnsupportedOperationException - this Accumulator's relationship collection could not be changedNullPointerException - a null value was provided where none was expectedIllegalStateException - this Accumulator's relationship collection could not be changed
at this timepublic ACCUMULATOR push(int aMember) throws UnsupportedOperationException, NullPointerException, IllegalStateException
MutableAccumulatorrelationship
collectionpush in interface MutableAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aMember - a new relationshipUnsupportedOperationException - this Accumulator's relationship collection could not be changedNullPointerException - a null value was provided where none was expectedIllegalStateException - this Accumulator's relationship collection could not be changed
at this timepublic ACCUMULATOR push(long aMember) throws UnsupportedOperationException, NullPointerException, IllegalStateException
MutableAccumulatorrelationship
collectionpush in interface MutableAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aMember - a new relationshipUnsupportedOperationException - this Accumulator's relationship collection could not be changedNullPointerException - a null value was provided where none was expectedIllegalStateException - this Accumulator's relationship collection could not be changed
at this timepublic ACCUMULATOR push(short aMember) throws UnsupportedOperationException, NullPointerException, IllegalStateException
MutableAccumulatorrelationship
collectionpush in interface MutableAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aMember - a new relationshipUnsupportedOperationException - this Accumulator's relationship collection could not be changedNullPointerException - a null value was provided where none was expectedIllegalStateException - this Accumulator's relationship collection could not be changed
at this timepublic ACCUMULATOR push(String aKey, Accumulator<?> aMember) throws UnsupportedOperationException, NullPointerException, IllegalStateException
MutableAccumulatorrelationship
collectionpush in interface MutableAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aKey - a new key (name)aMember - a new relationshipUnsupportedOperationException - this Accumulator's relationship collection could not changedNullPointerException - a null value was provided where none was expectedIllegalStateException - this Accumulator's relationship collection could not be changed
at this timepublic ACCUMULATOR pushPrimitive(Primitive<?> aMember) throws UnsupportedOperationException, NullPointerException, IllegalStateException
MutableAccumulatorrelationship
collectionpushPrimitive in interface MutableAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aMember - a new relationshipUnsupportedOperationException - this Accumulator's relationship collection could not be changedNullPointerException - a null value was provided where none was expectedIllegalStateException - this Accumulator's relationship collection could not be changed
at this timepublic ACCUMULATOR pushText(CharSequence aMember) throws UnsupportedOperationException, NullPointerException, IllegalStateException
MutableAccumulatorrelationship
collectionpushText in interface MutableAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>aMember - a new relationshipUnsupportedOperationException - this Accumulator's relationship collection could not be changedNullPointerException - a null value was provided where none was expectedIllegalStateException - this Accumulator's relationship collection could not be changed
at this timepublic ACCUMULATOR replaceRelationshipsUsing(Accumulator<?> anAccumulator) throws UnsupportedOperationException, NullPointerException, IllegalStateException, IllegalArgumentException
MutableAccumulatorreplaceRelationshipsUsing in interface MutableAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>anAccumulator - the Accumulator to queryUnsupportedOperationException - this Accumulator's relationships could not be changedNullPointerException - a null value was provided where none was expectedIllegalStateException - this Accumulator's relationships could not be changed at this
timeIllegalArgumentException - an aspect of the specified relationships were incompatible with
this Accumulator's specificationSealedAccumulator.getTarget()public ACCUMULATOR setAccumulator(Accumulator<?> anAccumulator) throws UnsupportedOperationException, NullPointerException, IllegalStateException, IllegalArgumentException
MutableAccumulatorshare the target of the
specified Accumulator with this Accumulator, and also
mirror this Accumulator's
relationships to the relationship map of the specified Accumulator.setAccumulator in interface MutableAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>anAccumulator - the Accumulator to queryUnsupportedOperationException - either this Accumulator's target or relationships could not be
changedNullPointerException - a null value was provided where none was expectedIllegalStateException - either this Accumulator's target or relationships could not be
changed at this timeIllegalArgumentException - an aspect of the specified target or relationships were
incompatible with this Accumulator's specificationMutableAccumulator.shareTarget(Primitive),
MutableAccumulator.replaceRelationshipsUsing(Accumulator)public ACCUMULATOR shareTargetWith(Accumulator<?> anAccumulator) throws UnsupportedOperationException, NullPointerException, IllegalStateException, IllegalArgumentException
MutableAccumulatorPrimitive target
with this Accumulator, or, if this Accumulator's target could not be
replaced, attempt to
change the current target's valueshareTargetWith in interface MutableAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>anAccumulator - the Accumulator to queryUnsupportedOperationException - this Accumulator's target, or the target's value, could not be
changedNullPointerException - a null value was provided where none was expectedIllegalStateException - this Accumulator's target, or the target's value, could not be
changed at this timeIllegalArgumentException - an aspect of the new target was incompatible with this
Accumulator's specification, or this Accumulator's target's
specificationSealedAccumulator.getTarget()public int size()
SealedAlgebraicStructureInteger.MAX_VALUE elements, returns
Integer.MAX_VALUE.size in interface SealedAlgebraicStructuresize in class AbstractPrimitiveWrapper<ACCUMULATOR extends Accumulator<ACCUMULATOR>>Collection.size()public Accumulator<?> toAccumulator()
AccumulatorReplicatorAccumulator then simply
call its AccumulatorReplicator.copy() function, otherwise convert it to a new
Accumulator instancetoAccumulator in interface AccumulatorReplicator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>public String toFunctionName()
SealedAccumulatortoFunctionName in interface SealedAccumulator<ACCUMULATOR extends Accumulator<ACCUMULATOR>>public String toString()
toString in interface CharSequencetoString in interface SealedKerneltoString in class AbstractPrimitiveWrapper<ACCUMULATOR extends Accumulator<ACCUMULATOR>>Copyright © 2006-2012 Ware-Squared Software Development. All Rights Reserved.