SCALAR
- the factory productpublic interface ScalarReplicator<SCALAR extends ScalarReplicator<SCALAR>> extends Replicator<SCALAR>
replicator
for scalar
Modifier and Type | Method and Description |
---|---|
SCALAR |
copyUsing(boolean aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
SCALAR |
copyUsing(byte aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
SCALAR |
copyUsing(char aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
SCALAR |
copyUsing(double aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
SCALAR |
copyUsing(float aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
SCALAR |
copyUsing(int aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
SCALAR |
copyUsing(long aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
SCALAR |
copyUsing(short aValue)
Using this object as a factory, produce a new scalar of an
appropriately matching type but initialized with the value specified
|
SCALAR |
copyUsingScalar(SealedScalar<?> aValue)
Using this scalar as a factory, produce a new scalar of the
same type but initialized with the value specified
|
Scalar<?> |
toScalar()
If this scalar is already a
scalar then simply
call its Replicator.copy() function, otherwise produce a new scalar
with scalar precision |
copy
SCALAR copyUsing(boolean aValue)
aValue
- a new valueSCALAR copyUsing(byte aValue)
aValue
- a new valueSCALAR copyUsing(char aValue)
aValue
- a new valueSCALAR copyUsing(double aValue)
aValue
- a new valueSCALAR copyUsing(float aValue)
aValue
- a new valueSCALAR copyUsing(int aValue)
aValue
- a new valueSCALAR copyUsing(long aValue)
aValue
- a new valueSCALAR copyUsing(short aValue)
aValue
- a new valueSCALAR copyUsingScalar(SealedScalar<?> aValue)
aValue
- a new valueScalar<?> toScalar()
scalar
then simply
call its Replicator.copy()
function, otherwise produce a new scalar
with scalar precisionCopyright © 2006-2012 Ware-Squared Software Development. All Rights Reserved.