public static class BasicLocations.LongArrayLocation extends BasicLocations.ArrayLocation implements LocationImpl.InternalLongLocation
LocationImpl.EffectivelyFinalLocation<T extends Location>, LocationImpl.InternalLongLocation, LocationImpl.TypedObjectLocation<T extends Location & ObjectLocation>| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowInt |
arrayLocation, index| Constructor and Description |
|---|
BasicLocations.LongArrayLocation(int index,
Location arrayLocation) |
BasicLocations.LongArrayLocation(int index,
Location arrayLocation,
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.
|
long |
getLong(DynamicObject store,
boolean condition) |
long |
getLong(DynamicObject store,
Shape shape) |
java.lang.Class<java.lang.Long> |
getType()
The type of this location.
|
int |
primitiveArrayCount()
Get the number of primitive array elements this location requires.
|
void |
setInternal(DynamicObject store,
java.lang.Object value)
Like
Location.set(DynamicObject, Object, Shape), but does not invalidate final locations. |
void |
setLong(DynamicObject store,
long value) |
void |
setLong(DynamicObject store,
long value,
Shape shape) |
void |
setLong(DynamicObject store,
long value,
Shape oldShape,
Shape newShape) |
void |
setLongInternal(DynamicObject store,
long value) |
equals, getArray, getIndex, getWhereString, hashCodecanSet, canStoreFinal, getInternal, isConstant, isFinal, objectArrayCount, objectFieldCount, primitiveFieldCount, set, toString, valueEqualscheckShape, finalLocation, get, incompatibleLocation, set, setclone, finalize, getClass, notify, notifyAll, wait, wait, waitget, set, set, setpublic BasicLocations.LongArrayLocation(int index,
Location arrayLocation,
boolean allowInt)
public BasicLocations.LongArrayLocation(int index,
Location arrayLocation)
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 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 long getLong(DynamicObject store, boolean condition)
getLong in interface LongLocationBaseLocation.get(DynamicObject, boolean)public final void setLongInternal(DynamicObject store, long value)
setLongInternal in interface LocationImpl.InternalLongLocationpublic void setLong(DynamicObject store, long value, Shape shape) throws FinalLocationException
setLong in interface LongLocationFinalLocationExceptionBaseLocation.set(DynamicObject, Object, Shape)public final void setLong(DynamicObject store, long value, Shape oldShape, Shape newShape)
setLong in interface LongLocationBaseLocation.set(DynamicObject, Object, Shape, Shape)public final void setLong(DynamicObject store, long value) throws FinalLocationException
setLong in interface LongLocationFinalLocationExceptionBaseLocation.set(DynamicObject, Object)public final long getLong(DynamicObject store, Shape shape)
getLong in interface LongLocationBaseLocation.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 java.lang.Class<java.lang.Long> getType()
TypedLocationgetType in interface LongLocationgetType in interface TypedLocationpublic int primitiveArrayCount()
LocationImplprimitiveArrayCount in class LocationImpl