- java.lang.Object
-
- swim.runtime.AbstractSwimRef
-
- swim.runtime.AbstractTierBinding
-
- swim.runtime.LaneView
-
- swim.runtime.warp.WarpLaneView
-
- swim.runtime.lane.ListLaneView<V>
-
- All Implemented Interfaces:
Iterable<V>,Collection<V>,List<V>,swim.api.downlink.DownlinkFactory,swim.api.Lane,swim.api.lane.ListLane<V>,swim.api.ref.SwimRef,swim.api.warp.WarpLane,swim.observable.Observable<Object>,swim.observable.ObservableList<V>,CellContext,TierBinding,swim.util.KeyedList<V>,swim.util.Log
public class ListLaneView<V> extends WarpLaneView implements swim.api.lane.ListLane<V>
-
-
Field Summary
Fields Modifier and Type Field Description protected swim.api.agent.AgentContextagentContextprotected swim.api.data.ListData<V>dataViewprotected intflagsprotected ListLaneModellaneBindingprotected swim.structure.Form<V>valueForm-
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 ListLaneView(swim.api.agent.AgentContext agentContext, swim.structure.Form<V> valueForm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, V element)voidadd(int index, V element, Object key)booleanadd(V v)booleanadd(V element, Object key)booleanaddAll(int index, Collection<? extends V> elements)booleanaddAll(Collection<? extends V> elements)swim.api.agent.AgentContextagentContext()voidclear()voidclose()booleancontains(Object o)booleancontainsAll(Collection<?> elements)ListLaneModelcreateLaneBinding()ListLaneView<V>didClear(swim.observable.function.DidClear didClear)ListLaneView<V>didCommand(swim.api.warp.function.DidCommand didCommand)ListLaneView<V>didDrop(swim.observable.function.DidDrop didDrop)ListLaneView<V>didEnter(swim.api.warp.function.DidEnter didEnter)ListLaneView<V>didLeave(swim.api.warp.function.DidLeave didLeave)ListLaneView<V>didMove(swim.observable.function.DidMoveIndex<V> didMove)ListLaneView<V>didRemove(swim.observable.function.DidRemoveIndex<V> didRemove)ListLaneView<V>didTake(swim.observable.function.DidTake didTake)ListLaneView<V>didUpdate(swim.observable.function.DidUpdateIndex<V> didUpdate)ListLaneView<V>didUplink(swim.api.warp.function.DidUplink didUplink)booleandispatchDidClear(swim.api.Link link, boolean preemptive)booleandispatchDidDrop(swim.api.Link link, int lower, boolean preemptive)booleandispatchDidMove(swim.api.Link link, int fromIndex, int toIndex, V value, boolean preemptive)booleandispatchDidRemove(swim.api.Link link, int index, V oldValue, boolean preemptive)booleandispatchDidTake(swim.api.Link link, int upper, boolean preemptive)booleandispatchDidUpdate(swim.api.Link link, int index, V newValue, V oldValue, boolean preemptive)booleandispatchWillClear(swim.api.Link link, boolean preemptive)booleandispatchWillDrop(swim.api.Link link, int lower, boolean preemptive)booleandispatchWillMove(swim.api.Link link, int fromIndex, int toIndex, V value, boolean preemptive)booleandispatchWillRemove(swim.api.Link link, int index, boolean preemptive)booleandispatchWillTake(swim.api.Link link, int upper, boolean preemptive)Map.Entry<Boolean,V>dispatchWillUpdate(swim.api.Link link, int index, V newValue, boolean preemptive)voiddrop(int lower)ListIterator<Map.Entry<Object,V>>entryIterator()Vget(int index)Vget(int index, Object key)Map.Entry<Object,V>getEntry(int index)Map.Entry<Object,V>getEntry(int index, Object key)intindexOf(Object o)booleanisEmpty()booleanisResident()ListLaneView<V>isResident(boolean isResident)booleanisTransient()ListLaneView<V>isTransient(boolean isTransient)Iterator<V>iterator()ListIterator<Object>keyIterator()ListLaneModellaneBinding()voidlaneDidClear()voidlaneDidDrop(int lower)voidlaneDidInsert(int index, V newValue)voidlaneDidMove(int fromIndex, int toIndex, V value)voidlaneDidRemove(int index, V oldValue)voidlaneDidTake(int upper)voidlaneDidUpdate(int index, V newValue, V oldValue)voidlaneWillClear()voidlaneWillDrop(int lower)VlaneWillInsert(int index, V newValue)voidlaneWillMove(int fromIndex, int toIndex, V value)voidlaneWillRemove(int index)voidlaneWillTake(int upper)VlaneWillUpdate(int index, V newValue)intlastIndexOf(Object o)ListIterator<V>listIterator()ListIterator<V>listIterator(int index)voidmove(int fromIndex, int toIndex)voidmove(int fromIndex, int toIndex, Object key)ListLaneView<V>observe(Object observer)Vremove(int index)Vremove(int index, Object key)booleanremove(Object o)booleanremoveAll(Collection<?> elements)booleanretainAll(Collection<?> elements)Vset(int index, V element)Vset(int index, V element, Object key)voidsetValueForm(swim.structure.Form<V> valueForm)intsize()swim.util.KeyedList<V>snapshot()List<V>subList(int fromIndex, int toIndex)voidtake(int upper)Object[]toArray()<T> T[]toArray(T[] a)protected ObjecttypesafeObservers(Object observers)ListLaneView<V>unobserve(Object observer)<V2> ListLaneView<V2>valueClass(Class<V2> valueClass)swim.structure.Form<V>valueForm()<V2> ListLaneView<V2>valueForm(swim.structure.Form<V2> valueForm)ListLaneView<V>willClear(swim.observable.function.WillClear willClear)ListLaneView<V>willCommand(swim.api.warp.function.WillCommand willCommand)ListLaneView<V>willDrop(swim.observable.function.WillDrop willDrop)ListLaneView<V>willEnter(swim.api.warp.function.WillEnter willEnter)ListLaneView<V>willLeave(swim.api.warp.function.WillLeave willLeave)protected voidwillLoad()ListLaneView<V>willMove(swim.observable.function.WillMoveIndex<V> willMove)ListLaneView<V>willRemove(swim.observable.function.WillRemoveIndex willRemove)ListLaneView<V>willTake(swim.observable.function.WillTake willTake)ListLaneView<V>willUpdate(swim.observable.function.WillUpdateIndex<V> willUpdate)ListLaneView<V>willUplink(swim.api.warp.function.WillUplink willUplink)-
Methods inherited from class swim.runtime.warp.WarpLaneView
dispatchDidCommand, dispatchDidEnter, dispatchDidLeave, dispatchDidUplink, dispatchWillCommand, dispatchWillEnter, dispatchWillLeave, dispatchWillUplink, laneDidCommand, laneDidEnter, laneDidLeave, laneDidUplink, laneWillCommand, laneWillEnter, laneWillLeave, laneWillUplink
-
Methods inherited from class swim.runtime.LaneView
bindDownlink, bottomLane, cellAddress, closeDownlink, debug, edgeName, error, fail, hostUri, info, laneContext, laneDidFail, laneUri, meshUri, nodeUri, openDownlink, openMetaDownlink, policy, pushDown, reportDown, schedule, stage, store, tierContext, trace, unwrapLane, warn
-
Methods inherited from class swim.runtime.AbstractTierBinding
activate, didClose, didFail, didLoad, didOpen, didStart, didStop, didUnload, isClosed, isLoaded, isOpened, isStarted, load, open, start, stop, unload, willClose, willOpen, willStart, willStop, willUnload
-
Methods inherited from class swim.runtime.AbstractSwimRef
command, command, command, command, command, command, command, command, command, command, command, command, command, command, command, command, downlink, downlinkHttp, downlinkList, downlinkMap, downlinkValue, downlinkWs, hostRef, hostRef, laneRef, laneRef, laneRef, laneRef, nodeRef, nodeRef, nodeRef, nodeRef
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Field Detail
-
agentContext
protected final swim.api.agent.AgentContext agentContext
-
valueForm
protected swim.structure.Form<V> valueForm
-
flags
protected int flags
-
laneBinding
protected ListLaneModel laneBinding
-
dataView
protected swim.api.data.ListData<V> dataView
-
-
Constructor Detail
-
ListLaneView
public ListLaneView(swim.api.agent.AgentContext agentContext, swim.structure.Form<V> valueForm)
-
-
Method Detail
-
agentContext
public swim.api.agent.AgentContext agentContext()
- Specified by:
agentContextin classLaneView
-
laneBinding
public ListLaneModel laneBinding()
- Specified by:
laneBindingin classLaneView
-
createLaneBinding
public ListLaneModel createLaneBinding()
- Specified by:
createLaneBindingin classLaneView
-
valueForm
public final swim.structure.Form<V> valueForm()
- Specified by:
valueFormin interfaceswim.api.lane.ListLane<V>
-
valueForm
public <V2> ListLaneView<V2> valueForm(swim.structure.Form<V2> valueForm)
- Specified by:
valueFormin interfaceswim.api.lane.ListLane<V>
-
valueClass
public <V2> ListLaneView<V2> valueClass(Class<V2> valueClass)
- Specified by:
valueClassin interfaceswim.api.lane.ListLane<V>
-
setValueForm
public void setValueForm(swim.structure.Form<V> valueForm)
-
isResident
public final boolean isResident()
- Specified by:
isResidentin interfaceswim.api.lane.ListLane<V>
-
isResident
public ListLaneView<V> isResident(boolean isResident)
- Specified by:
isResidentin interfaceswim.api.lane.ListLane<V>
-
isTransient
public final boolean isTransient()
- Specified by:
isTransientin interfaceswim.api.lane.ListLane<V>
-
isTransient
public ListLaneView<V> isTransient(boolean isTransient)
- Specified by:
isTransientin interfaceswim.api.lane.ListLane<V>
-
willLoad
protected void willLoad()
- Overrides:
willLoadin classAbstractTierBinding
-
close
public void close()
- Specified by:
closein interfaceswim.api.Lane- Specified by:
closein interfaceswim.api.ref.SwimRef- Specified by:
closein interfaceTierBinding- Specified by:
closein classLaneView
-
observe
public ListLaneView<V> observe(Object observer)
- Specified by:
observein interfaceswim.api.Lane- Specified by:
observein interfaceswim.api.lane.ListLane<V>- Specified by:
observein interfaceswim.observable.Observable<V>- Specified by:
observein interfaceswim.observable.ObservableList<V>- Specified by:
observein interfaceswim.api.warp.WarpLane- Overrides:
observein classWarpLaneView
-
unobserve
public ListLaneView<V> unobserve(Object observer)
- Specified by:
unobservein interfaceswim.api.Lane- Specified by:
unobservein interfaceswim.api.lane.ListLane<V>- Specified by:
unobservein interfaceswim.observable.Observable<V>- Specified by:
unobservein interfaceswim.observable.ObservableList<V>- Specified by:
unobservein interfaceswim.api.warp.WarpLane- Overrides:
unobservein classWarpLaneView
-
willUpdate
public ListLaneView<V> willUpdate(swim.observable.function.WillUpdateIndex<V> willUpdate)
-
didUpdate
public ListLaneView<V> didUpdate(swim.observable.function.DidUpdateIndex<V> didUpdate)
-
willMove
public ListLaneView<V> willMove(swim.observable.function.WillMoveIndex<V> willMove)
-
didMove
public ListLaneView<V> didMove(swim.observable.function.DidMoveIndex<V> didMove)
-
willRemove
public ListLaneView<V> willRemove(swim.observable.function.WillRemoveIndex willRemove)
-
didRemove
public ListLaneView<V> didRemove(swim.observable.function.DidRemoveIndex<V> didRemove)
-
willDrop
public ListLaneView<V> willDrop(swim.observable.function.WillDrop willDrop)
-
didDrop
public ListLaneView<V> didDrop(swim.observable.function.DidDrop didDrop)
-
willTake
public ListLaneView<V> willTake(swim.observable.function.WillTake willTake)
-
didTake
public ListLaneView<V> didTake(swim.observable.function.DidTake didTake)
-
willClear
public ListLaneView<V> willClear(swim.observable.function.WillClear willClear)
-
didClear
public ListLaneView<V> didClear(swim.observable.function.DidClear didClear)
-
willCommand
public ListLaneView<V> willCommand(swim.api.warp.function.WillCommand willCommand)
- Specified by:
willCommandin interfaceswim.api.lane.ListLane<V>- Specified by:
willCommandin interfaceswim.api.warp.WarpLane- Specified by:
willCommandin classWarpLaneView
-
didCommand
public ListLaneView<V> didCommand(swim.api.warp.function.DidCommand didCommand)
- Specified by:
didCommandin interfaceswim.api.lane.ListLane<V>- Specified by:
didCommandin interfaceswim.api.warp.WarpLane- Specified by:
didCommandin classWarpLaneView
-
willUplink
public ListLaneView<V> willUplink(swim.api.warp.function.WillUplink willUplink)
- Specified by:
willUplinkin interfaceswim.api.lane.ListLane<V>- Specified by:
willUplinkin interfaceswim.api.warp.WarpLane- Specified by:
willUplinkin classWarpLaneView
-
didUplink
public ListLaneView<V> didUplink(swim.api.warp.function.DidUplink didUplink)
- Specified by:
didUplinkin interfaceswim.api.lane.ListLane<V>- Specified by:
didUplinkin interfaceswim.api.warp.WarpLane- Specified by:
didUplinkin classWarpLaneView
-
willEnter
public ListLaneView<V> willEnter(swim.api.warp.function.WillEnter willEnter)
- Specified by:
willEnterin interfaceswim.api.lane.ListLane<V>- Specified by:
willEnterin interfaceswim.api.warp.WarpLane- Specified by:
willEnterin classWarpLaneView
-
didEnter
public ListLaneView<V> didEnter(swim.api.warp.function.DidEnter didEnter)
- Specified by:
didEnterin interfaceswim.api.lane.ListLane<V>- Specified by:
didEnterin interfaceswim.api.warp.WarpLane- Specified by:
didEnterin classWarpLaneView
-
willLeave
public ListLaneView<V> willLeave(swim.api.warp.function.WillLeave willLeave)
- Specified by:
willLeavein interfaceswim.api.lane.ListLane<V>- Specified by:
willLeavein interfaceswim.api.warp.WarpLane- Specified by:
willLeavein classWarpLaneView
-
didLeave
public ListLaneView<V> didLeave(swim.api.warp.function.DidLeave didLeave)
- Specified by:
didLeavein interfaceswim.api.lane.ListLane<V>- Specified by:
didLeavein interfaceswim.api.warp.WarpLane- Specified by:
didLeavein classWarpLaneView
-
dispatchWillUpdate
public Map.Entry<Boolean,V> dispatchWillUpdate(swim.api.Link link, int index, V newValue, boolean preemptive)
-
dispatchDidUpdate
public boolean dispatchDidUpdate(swim.api.Link link, int index, V newValue, V oldValue, boolean preemptive)
-
dispatchWillMove
public boolean dispatchWillMove(swim.api.Link link, int fromIndex, int toIndex, V value, boolean preemptive)
-
dispatchDidMove
public boolean dispatchDidMove(swim.api.Link link, int fromIndex, int toIndex, V value, boolean preemptive)
-
dispatchWillRemove
public boolean dispatchWillRemove(swim.api.Link link, int index, boolean preemptive)
-
dispatchDidRemove
public boolean dispatchDidRemove(swim.api.Link link, int index, V oldValue, boolean preemptive)
-
dispatchWillDrop
public boolean dispatchWillDrop(swim.api.Link link, int lower, boolean preemptive)
-
dispatchDidDrop
public boolean dispatchDidDrop(swim.api.Link link, int lower, boolean preemptive)
-
dispatchWillTake
public boolean dispatchWillTake(swim.api.Link link, int upper, boolean preemptive)
-
dispatchDidTake
public boolean dispatchDidTake(swim.api.Link link, int upper, boolean preemptive)
-
dispatchWillClear
public boolean dispatchWillClear(swim.api.Link link, boolean preemptive)
-
dispatchDidClear
public boolean dispatchDidClear(swim.api.Link link, boolean preemptive)
-
laneDidInsert
public void laneDidInsert(int index, V newValue)
-
laneWillMove
public void laneWillMove(int fromIndex, int toIndex, V value)
-
laneDidMove
public void laneDidMove(int fromIndex, int toIndex, V value)
-
laneWillRemove
public void laneWillRemove(int index)
-
laneDidRemove
public void laneDidRemove(int index, V oldValue)
-
laneWillDrop
public void laneWillDrop(int lower)
-
laneDidDrop
public void laneDidDrop(int lower)
-
laneWillTake
public void laneWillTake(int upper)
-
laneDidTake
public void laneDidTake(int upper)
-
laneWillClear
public void laneWillClear()
-
laneDidClear
public void laneDidClear()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Object o)
-
toArray
public Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
add
public boolean add(V v)
-
remove
public boolean remove(Object o)
-
containsAll
public boolean containsAll(Collection<?> elements)
- Specified by:
containsAllin interfaceCollection<V>- Specified by:
containsAllin interfaceList<V>
-
addAll
public boolean addAll(Collection<? extends V> elements)
-
addAll
public boolean addAll(int index, Collection<? extends V> elements)
-
removeAll
public boolean removeAll(Collection<?> elements)
-
retainAll
public boolean retainAll(Collection<?> elements)
-
size
public int size()
-
drop
public void drop(int lower)
-
take
public void take(int upper)
-
clear
public void clear()
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<V>
-
listIterator
public ListIterator<V> listIterator()
- Specified by:
listIteratorin interfaceList<V>
-
listIterator
public ListIterator<V> listIterator(int index)
- Specified by:
listIteratorin interfaceList<V>
-
snapshot
public swim.util.KeyedList<V> snapshot()
- Specified by:
snapshotin interfaceswim.api.lane.ListLane<V>
-
getEntry
public Map.Entry<Object,V> getEntry(int index)
- Specified by:
getEntryin interfaceswim.util.KeyedList<V>
-
getEntry
public Map.Entry<Object,V> getEntry(int index, Object key)
- Specified by:
getEntryin interfaceswim.util.KeyedList<V>
-
set
public V set(int index, V element, Object key)
- Specified by:
setin interfaceswim.util.KeyedList<V>
-
add
public boolean add(V element, Object key)
- Specified by:
addin interfaceswim.util.KeyedList<V>
-
add
public void add(int index, V element, Object key)- Specified by:
addin interfaceswim.util.KeyedList<V>
-
remove
public V remove(int index, Object key)
- Specified by:
removein interfaceswim.util.KeyedList<V>
-
move
public void move(int fromIndex, int toIndex)
-
move
public void move(int fromIndex, int toIndex, Object key)- Specified by:
movein interfaceswim.util.KeyedList<V>
-
keyIterator
public ListIterator<Object> keyIterator()
- Specified by:
keyIteratorin interfaceswim.util.KeyedList<V>
-
entryIterator
public ListIterator<Map.Entry<Object,V>> entryIterator()
- Specified by:
entryIteratorin interfaceswim.util.KeyedList<V>
-
-