public static class BasicLocations.BooleanLocationDecorator extends BasicLocations.PrimitiveLocationDecorator implements BooleanLocation
LocationImpl.EffectivelyFinalLocation<T extends Location>, LocationImpl.InternalLongLocation, LocationImpl.TypedObjectLocation<T extends Location & ObjectLocation>
Constructor and Description |
---|
BasicLocations.BooleanLocationDecorator(LocationImpl.InternalLongLocation longLocation) |
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.
|
boolean |
getBoolean(DynamicObject store,
boolean condition) |
boolean |
getBoolean(DynamicObject store,
Shape shape) |
java.lang.Class<java.lang.Boolean> |
getType()
The type of this location.
|
void |
setBoolean(DynamicObject store,
boolean value) |
void |
setBoolean(DynamicObject store,
boolean value,
Shape shape) |
void |
setBoolean(DynamicObject store,
boolean 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, setLongInternal
canSet, canStoreFinal, equals, getInternal, getWhereString, hashCode, isConstant, isFinal, objectArrayCount, objectFieldCount, set, toString, valueEquals
checkShape, finalLocation, get, incompatibleLocation, set, set
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
get, set, set, set
public BasicLocations.BooleanLocationDecorator(LocationImpl.InternalLongLocation longLocation)
public final java.lang.Object get(DynamicObject store, boolean condition)
BaseLocation
BaseLocation.get(DynamicObject, Shape)
instead.get
in interface BaseLocation
get
in class Location
condition
- the result of a shape check or false
BaseLocation.get(DynamicObject, Shape)
public boolean getBoolean(DynamicObject store, boolean condition)
getBoolean
in interface BooleanLocation
BaseLocation.get(DynamicObject, boolean)
public void setBoolean(DynamicObject store, boolean value, Shape shape)
setBoolean
in interface BooleanLocation
BaseLocation.set(DynamicObject, Object, Shape)
public void setBoolean(DynamicObject store, boolean value)
setBoolean
in interface BooleanLocation
BaseLocation.set(DynamicObject, Object)
public final void setInternal(DynamicObject store, java.lang.Object value) throws IncompatibleLocationException
Location
Location.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 LocationImpl
IncompatibleLocationException
- if value is of non-assignable typepublic final boolean getBoolean(DynamicObject store, Shape shape)
getBoolean
in interface BooleanLocation
BaseLocation.get(DynamicObject, Shape)
public final boolean canStore(java.lang.Object value)
Location
true
if the location is compatible with the value.
The value may still be rejected if Location.canSet(DynamicObject, Object)
returns false.canStore
in class LocationImpl
value
- the value in questionpublic final void setBoolean(DynamicObject store, boolean value, Shape oldShape, Shape newShape)
setBoolean
in interface BooleanLocation
BaseLocation.set(DynamicObject, Object, Shape, Shape)
public java.lang.Class<java.lang.Boolean> getType()
TypedLocation
getType
in interface BooleanLocation
getType
in interface TypedLocation