public static class BasicLocations.DoubleLocationDecorator extends BasicLocations.PrimitiveLocationDecorator implements DoubleLocation
LocationImpl.EffectivelyFinalLocation<T extends Location>, LocationImpl.InternalLongLocation, LocationImpl.TypedObjectLocation<T extends Location & ObjectLocation>| Constructor and Description |
|---|
BasicLocations.DoubleLocationDecorator(LocationImpl.InternalLongLocation longLocation,
boolean allowInt) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canStore(java.lang.Object value)
Returns
true if the location is compatible with the value. |
java.lang.Object |
get(DynamicObject store,
boolean condition)
Get object value as object at this location in store.
|
double |
getDouble(DynamicObject store,
boolean condition) |
double |
getDouble(DynamicObject store,
Shape shape) |
java.lang.Class<java.lang.Double> |
getType()
The type of this location.
|
void |
setDouble(DynamicObject store,
double value) |
void |
setDouble(DynamicObject store,
double value,
Shape shape) |
void |
setDouble(DynamicObject store,
double value,
Shape oldShape,
Shape newShape) |
void |
setInternal(DynamicObject store,
java.lang.Object value)
Like
Location.set(DynamicObject, Object, Shape), but does not invalidate final locations. |
getLong, getLong, primitiveArrayCount, primitiveFieldCount, setLong, setLong, setLongInternalcanSet, canStoreFinal, equals, getInternal, getWhereString, hashCode, isConstant, isFinal, objectArrayCount, objectFieldCount, set, toString, valueEqualscheckShape, finalLocation, get, incompatibleLocation, set, setclone, finalize, getClass, notify, notifyAll, wait, wait, waitget, set, set, setpublic BasicLocations.DoubleLocationDecorator(LocationImpl.InternalLongLocation longLocation, boolean allowInt)
public final java.lang.Object get(DynamicObject store, boolean condition)
BaseLocationBaseLocation.get(DynamicObject, Shape) instead.get in interface BaseLocationget in class Locationcondition - the result of a shape check or falseBaseLocation.get(DynamicObject, Shape)public double getDouble(DynamicObject store, boolean condition)
getDouble in interface DoubleLocationBaseLocation.get(DynamicObject, boolean)public void setDouble(DynamicObject store, double value, Shape shape)
setDouble in interface DoubleLocationBaseLocation.set(DynamicObject, Object, Shape)public void setDouble(DynamicObject store, double value)
setDouble in interface DoubleLocationBaseLocation.set(DynamicObject, Object)public final void setInternal(DynamicObject store, java.lang.Object value) throws IncompatibleLocationException
LocationLocation.set(DynamicObject, Object, Shape), but does not invalidate final locations. For
internal use only and subject to change, use DynamicObjectFactory to create objects
with predefined properties.setInternal in class LocationImplIncompatibleLocationException - if value is of non-assignable typepublic final double getDouble(DynamicObject store, Shape shape)
getDouble in interface DoubleLocationBaseLocation.get(DynamicObject, Shape)public final boolean canStore(java.lang.Object value)
Locationtrue if the location is compatible with the value.
The value may still be rejected if Location.canSet(DynamicObject, Object) returns false.canStore in class LocationImplvalue - the value in questionpublic final void setDouble(DynamicObject store, double value, Shape oldShape, Shape newShape)
setDouble in interface DoubleLocationBaseLocation.set(DynamicObject, Object, Shape, Shape)public java.lang.Class<java.lang.Double> getType()
TypedLocationgetType in interface DoubleLocationgetType in interface TypedLocation