- 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>,DownlinkFactory,Lane,ListLane<V>,SwimRef,WarpLane,Observable<Object>,ObservableList<V>,CellContext,TierBinding,KeyedList<V>,Log
public class ListLaneView<V> extends WarpLaneView implements ListLane<V>
-
-
Field Summary
Fields Modifier and Type Field Description protected AgentContextagentContextprotected ListData<V>dataViewprotected intflagsprotected ListLaneModellaneBindingprotected 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(AgentContext agentContext, 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)AgentContextagentContext()voidclear()voidclose()booleancontains(Object o)booleancontainsAll(Collection<?> elements)ListLaneModelcreateLaneBinding()ListLaneView<V>didClear(DidClear didClear)ListLaneView<V>didCommand(DidCommand didCommand)ListLaneView<V>didDrop(DidDrop didDrop)ListLaneView<V>didEnter(DidEnter didEnter)ListLaneView<V>didLeave(DidLeave didLeave)ListLaneView<V>didMove(DidMoveIndex<V> didMove)ListLaneView<V>didRemove(DidRemoveIndex<V> didRemove)ListLaneView<V>didTake(DidTake didTake)ListLaneView<V>didUpdate(DidUpdateIndex<V> didUpdate)ListLaneView<V>didUplink(DidUplink didUplink)booleandispatchDidClear(Link link, boolean preemptive)booleandispatchDidDrop(Link link, int lower, boolean preemptive)booleandispatchDidMove(Link link, int fromIndex, int toIndex, V value, boolean preemptive)booleandispatchDidRemove(Link link, int index, V oldValue, boolean preemptive)booleandispatchDidTake(Link link, int upper, boolean preemptive)booleandispatchDidUpdate(Link link, int index, V newValue, V oldValue, boolean preemptive)booleandispatchWillClear(Link link, boolean preemptive)booleandispatchWillDrop(Link link, int lower, boolean preemptive)booleandispatchWillMove(Link link, int fromIndex, int toIndex, V value, boolean preemptive)booleandispatchWillRemove(Link link, int index, boolean preemptive)booleandispatchWillTake(Link link, int upper, boolean preemptive)Map.Entry<Boolean,V>dispatchWillUpdate(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(Form<V> valueForm)intsize()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)Form<V>valueForm()<V2> ListLaneView<V2>valueForm(Form<V2> valueForm)ListLaneView<V>willClear(WillClear willClear)ListLaneView<V>willCommand(WillCommand willCommand)ListLaneView<V>willDrop(WillDrop willDrop)ListLaneView<V>willEnter(WillEnter willEnter)ListLaneView<V>willLeave(WillLeave willLeave)protected voidwillLoad()ListLaneView<V>willMove(WillMoveIndex<V> willMove)ListLaneView<V>willRemove(WillRemoveIndex willRemove)ListLaneView<V>willTake(WillTake willTake)ListLaneView<V>willUpdate(WillUpdateIndex<V> willUpdate)ListLaneView<V>willUplink(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 AgentContext agentContext
-
flags
protected int flags
-
laneBinding
protected ListLaneModel laneBinding
-
-
Constructor Detail
-
ListLaneView
public ListLaneView(AgentContext agentContext, Form<V> valueForm)
-
-
Method Detail
-
agentContext
public AgentContext agentContext()
- Specified by:
agentContextin classLaneView
-
laneBinding
public ListLaneModel laneBinding()
- Specified by:
laneBindingin classLaneView
-
createLaneBinding
public ListLaneModel createLaneBinding()
- Specified by:
createLaneBindingin classLaneView
-
valueForm
public <V2> ListLaneView<V2> valueForm(Form<V2> valueForm)
-
valueClass
public <V2> ListLaneView<V2> valueClass(Class<V2> valueClass)
- Specified by:
valueClassin interfaceListLane<V>
-
isResident
public final boolean isResident()
- Specified by:
isResidentin interfaceListLane<V>
-
isResident
public ListLaneView<V> isResident(boolean isResident)
- Specified by:
isResidentin interfaceListLane<V>
-
isTransient
public final boolean isTransient()
- Specified by:
isTransientin interfaceListLane<V>
-
isTransient
public ListLaneView<V> isTransient(boolean isTransient)
- Specified by:
isTransientin interfaceListLane<V>
-
willLoad
protected void willLoad()
- Overrides:
willLoadin classAbstractTierBinding
-
close
public void close()
-
observe
public ListLaneView<V> observe(Object observer)
- Specified by:
observein interfaceLane- Specified by:
observein interfaceListLane<V>- Specified by:
observein interfaceObservable<V>- Specified by:
observein interfaceObservableList<V>- Specified by:
observein interfaceWarpLane- Overrides:
observein classWarpLaneView
-
unobserve
public ListLaneView<V> unobserve(Object observer)
- Specified by:
unobservein interfaceLane- Specified by:
unobservein interfaceListLane<V>- Specified by:
unobservein interfaceObservable<V>- Specified by:
unobservein interfaceObservableList<V>- Specified by:
unobservein interfaceWarpLane- Overrides:
unobservein classWarpLaneView
-
willUpdate
public ListLaneView<V> willUpdate(WillUpdateIndex<V> willUpdate)
- Specified by:
willUpdatein interfaceListLane<V>- Specified by:
willUpdatein interfaceObservableList<V>
-
didUpdate
public ListLaneView<V> didUpdate(DidUpdateIndex<V> didUpdate)
-
willMove
public ListLaneView<V> willMove(WillMoveIndex<V> willMove)
-
didMove
public ListLaneView<V> didMove(DidMoveIndex<V> didMove)
-
willRemove
public ListLaneView<V> willRemove(WillRemoveIndex willRemove)
- Specified by:
willRemovein interfaceListLane<V>- Specified by:
willRemovein interfaceObservableList<V>
-
didRemove
public ListLaneView<V> didRemove(DidRemoveIndex<V> didRemove)
-
willDrop
public ListLaneView<V> willDrop(WillDrop willDrop)
-
didDrop
public ListLaneView<V> didDrop(DidDrop didDrop)
-
willTake
public ListLaneView<V> willTake(WillTake willTake)
-
didTake
public ListLaneView<V> didTake(DidTake didTake)
-
willClear
public ListLaneView<V> willClear(WillClear willClear)
-
didClear
public ListLaneView<V> didClear(DidClear didClear)
-
willCommand
public ListLaneView<V> willCommand(WillCommand willCommand)
- Specified by:
willCommandin interfaceListLane<V>- Specified by:
willCommandin interfaceWarpLane- Specified by:
willCommandin classWarpLaneView
-
didCommand
public ListLaneView<V> didCommand(DidCommand didCommand)
- Specified by:
didCommandin interfaceListLane<V>- Specified by:
didCommandin interfaceWarpLane- Specified by:
didCommandin classWarpLaneView
-
willUplink
public ListLaneView<V> willUplink(WillUplink willUplink)
- Specified by:
willUplinkin interfaceListLane<V>- Specified by:
willUplinkin interfaceWarpLane- Specified by:
willUplinkin classWarpLaneView
-
didUplink
public ListLaneView<V> didUplink(DidUplink didUplink)
-
willEnter
public ListLaneView<V> willEnter(WillEnter willEnter)
-
didEnter
public ListLaneView<V> didEnter(DidEnter didEnter)
-
willLeave
public ListLaneView<V> willLeave(WillLeave willLeave)
-
didLeave
public ListLaneView<V> didLeave(DidLeave didLeave)
-
dispatchWillUpdate
public Map.Entry<Boolean,V> dispatchWillUpdate(Link link, int index, V newValue, boolean preemptive)
-
dispatchDidUpdate
public boolean dispatchDidUpdate(Link link, int index, V newValue, V oldValue, boolean preemptive)
-
dispatchWillMove
public boolean dispatchWillMove(Link link, int fromIndex, int toIndex, V value, boolean preemptive)
-
dispatchDidMove
public boolean dispatchDidMove(Link link, int fromIndex, int toIndex, V value, boolean preemptive)
-
dispatchWillRemove
public boolean dispatchWillRemove(Link link, int index, boolean preemptive)
-
dispatchDidRemove
public boolean dispatchDidRemove(Link link, int index, V oldValue, boolean preemptive)
-
dispatchWillDrop
public boolean dispatchWillDrop(Link link, int lower, boolean preemptive)
-
dispatchDidDrop
public boolean dispatchDidDrop(Link link, int lower, boolean preemptive)
-
dispatchWillTake
public boolean dispatchWillTake(Link link, int upper, boolean preemptive)
-
dispatchDidTake
public boolean dispatchDidTake(Link link, int upper, boolean preemptive)
-
dispatchWillClear
public boolean dispatchWillClear(Link link, boolean preemptive)
-
dispatchDidClear
public boolean dispatchDidClear(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>
-
move
public void move(int fromIndex, int toIndex)
-
move
public void move(int fromIndex, int toIndex, Object key)
-
keyIterator
public ListIterator<Object> keyIterator()
- Specified by:
keyIteratorin interfaceKeyedList<V>
-
entryIterator
public ListIterator<Map.Entry<Object,V>> entryIterator()
- Specified by:
entryIteratorin interfaceKeyedList<V>
-
-