- java.lang.Object
-
- swim.runtime.AbstractSwimRef
-
- swim.runtime.AbstractTierBinding
-
- swim.runtime.lane.LaneModel<ListLaneView<?>,ListLaneUplink>
-
- swim.runtime.lane.ListLaneModel
-
- All Implemented Interfaces:
swim.api.downlink.DownlinkFactory,swim.api.ref.SwimRef,CellBinding,CellContext,LaneBinding,TierBinding,swim.store.StoreBinding,swim.store.StoreContext,swim.util.Log
public class ListLaneModel extends LaneModel<ListLaneView<?>,ListLaneUplink>
-
-
Field Summary
Fields Modifier and Type Field Description protected swim.api.data.ListData<swim.structure.Value>dataprotected intflags-
Fields inherited from class swim.runtime.lane.LaneModel
laneContext
-
Fields inherited from class swim.runtime.AbstractTierBinding
CLOSED_PHASE, CLOSED_STATE, CLOSING_STATE, FAILED_STATE, FAILING_STATE, LOADED_PHASE, LOADED_STATE, LOADING_STATE, OPENED_PHASE, OPENED_STATE, OPENING_STATE, PHASE_MASK, PHASE_SHIFT, RECOVERING_STATE, STARTED_PHASE, STARTED_STATE, STARTING_STATE, STATE_MASK, status, STATUS, STOPPING_STATE, UNLOADING_STATE
-
-
Constructor Summary
Constructors Constructor Description ListLaneModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V> booleanadd(ListLaneView<V> view, int index, V newObject)<V> booleanadd(ListLaneView<V> view, int index, V newObject, Object key)voidclear(ListLaneView<?> view)protected ListLaneUplinkcreateUplink(LinkBinding link)protected voiddidOpenLaneView(ListLaneView<?> view)voiddrop(ListLaneView<?> view, int lower)swim.structure.Valueget(int index)booleanisResident()ListLaneModelisResident(boolean isResident)booleanisSigned()ListLaneModelisSigned(boolean isSigned)booleanisTransient()ListLaneModelisTransient(boolean isTransient)voidmove(int fromIndex, int toIndex)voidmove(int fromIndex, int toIndex, Object key)voidonCommand(swim.warp.CommandMessage message)protected voidopenStore()<V> Vremove(ListLaneView<V> view, int index)<V> Vremove(ListLaneView<V> view, int index, Object key)<V> Vset(ListLaneView<V> view, int index, V newObject)<V> Vset(ListLaneView<V> view, int index, V newObject, Object key)voidsetLaneContext(LaneContext laneContext)voidtake(ListLaneView<?> view, int upper)-
Methods inherited from class swim.runtime.lane.LaneModel
agentKey, bindDownlink, closeData, closeDownlink, closeLaneView, closeUplink, cueDown, data, dataBindings, debug, decodeRequest, didClose, didCloseLaneView, didEnter, didFail, didLeave, didRequest, didRespond, didUplink, doRespond, error, getLaneView, getUplink, getUplinks, hostUri, httpDownlink, httpUplink, info, injectListData, injectMapData, injectSpatialData, injectValueData, laneContext, laneUri, meshUri, nodeUri, openDownlink, openLaneView, openListData, openMapData, openSpatialData, openUplink, openValueData, partKey, policy, pushDown, pushUp, pushUpCommand, schedule, sendDown, stage, tierContext, trace, unwrapLane, warn, willClose, willLoad, willOpen, willRequest, willRespond, willStart, willStop, willUnload
-
Methods inherited from class swim.runtime.AbstractTierBinding
activate, close, didLoad, didOpen, didStart, didStop, didUnload, isClosed, isLoaded, isOpened, isStarted, load, open, start, stop, unload
-
Methods inherited from class swim.runtime.AbstractSwimRef
command, command, command, command, command, command, command, command, downlink, downlinkHttp, downlinkList, downlinkMap, downlinkValue, hostRef, hostRef, laneRef, laneRef, laneRef, laneRef, nodeRef, nodeRef, nodeRef, nodeRef
-
-
-
-
Method Detail
-
createUplink
protected ListLaneUplink createUplink(LinkBinding link)
- Specified by:
createUplinkin classLaneModel<ListLaneView<?>,ListLaneUplink>
-
setLaneContext
public void setLaneContext(LaneContext laneContext)
- Specified by:
setLaneContextin interfaceLaneBinding- Overrides:
setLaneContextin classLaneModel<ListLaneView<?>,ListLaneUplink>
-
openStore
protected void openStore()
-
didOpenLaneView
protected void didOpenLaneView(ListLaneView<?> view)
- Specified by:
didOpenLaneViewin classLaneModel<ListLaneView<?>,ListLaneUplink>
-
onCommand
public void onCommand(swim.warp.CommandMessage message)
- Overrides:
onCommandin classLaneModel<ListLaneView<?>,ListLaneUplink>
-
isResident
public final boolean isResident()
-
isResident
public ListLaneModel isResident(boolean isResident)
-
isTransient
public final boolean isTransient()
-
isTransient
public ListLaneModel isTransient(boolean isTransient)
-
isSigned
public final boolean isSigned()
-
isSigned
public ListLaneModel isSigned(boolean isSigned)
-
get
public swim.structure.Value get(int index)
-
add
public <V> boolean add(ListLaneView<V> view, int index, V newObject)
-
add
public <V> boolean add(ListLaneView<V> view, int index, V newObject, Object key)
-
set
public <V> V set(ListLaneView<V> view, int index, V newObject)
-
set
public <V> V set(ListLaneView<V> view, int index, V newObject, Object key)
-
move
public void move(int fromIndex, int toIndex)
-
move
public void move(int fromIndex, int toIndex, Object key)
-
remove
public <V> V remove(ListLaneView<V> view, int index)
-
remove
public <V> V remove(ListLaneView<V> view, int index, Object key)
-
drop
public void drop(ListLaneView<?> view, int lower)
-
take
public void take(ListLaneView<?> view, int upper)
-
clear
public void clear(ListLaneView<?> view)
-
-