- 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 AgentContext
agentContext
protected ListData<V>
dataView
protected int
flags
protected ListLaneModel
laneBinding
protected 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 void
add(int index, V element)
void
add(int index, V element, Object key)
boolean
add(V v)
boolean
add(V element, Object key)
boolean
addAll(int index, Collection<? extends V> elements)
boolean
addAll(Collection<? extends V> elements)
AgentContext
agentContext()
void
clear()
void
close()
boolean
contains(Object o)
boolean
containsAll(Collection<?> elements)
ListLaneModel
createLaneBinding()
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)
boolean
dispatchDidClear(Link link, boolean preemptive)
boolean
dispatchDidDrop(Link link, int lower, boolean preemptive)
boolean
dispatchDidMove(Link link, int fromIndex, int toIndex, V value, boolean preemptive)
boolean
dispatchDidRemove(Link link, int index, V oldValue, boolean preemptive)
boolean
dispatchDidTake(Link link, int upper, boolean preemptive)
boolean
dispatchDidUpdate(Link link, int index, V newValue, V oldValue, boolean preemptive)
boolean
dispatchWillClear(Link link, boolean preemptive)
boolean
dispatchWillDrop(Link link, int lower, boolean preemptive)
boolean
dispatchWillMove(Link link, int fromIndex, int toIndex, V value, boolean preemptive)
boolean
dispatchWillRemove(Link link, int index, boolean preemptive)
boolean
dispatchWillTake(Link link, int upper, boolean preemptive)
Map.Entry<Boolean,V>
dispatchWillUpdate(Link link, int index, V newValue, boolean preemptive)
void
drop(int lower)
ListIterator<Map.Entry<Object,V>>
entryIterator()
V
get(int index)
V
get(int index, Object key)
Map.Entry<Object,V>
getEntry(int index)
Map.Entry<Object,V>
getEntry(int index, Object key)
int
indexOf(Object o)
boolean
isEmpty()
boolean
isResident()
ListLaneView<V>
isResident(boolean isResident)
boolean
isTransient()
ListLaneView<V>
isTransient(boolean isTransient)
Iterator<V>
iterator()
ListIterator<Object>
keyIterator()
ListLaneModel
laneBinding()
void
laneDidClear()
void
laneDidDrop(int lower)
void
laneDidInsert(int index, V newValue)
void
laneDidMove(int fromIndex, int toIndex, V value)
void
laneDidRemove(int index, V oldValue)
void
laneDidTake(int upper)
void
laneDidUpdate(int index, V newValue, V oldValue)
void
laneWillClear()
void
laneWillDrop(int lower)
V
laneWillInsert(int index, V newValue)
void
laneWillMove(int fromIndex, int toIndex, V value)
void
laneWillRemove(int index)
void
laneWillTake(int upper)
V
laneWillUpdate(int index, V newValue)
int
lastIndexOf(Object o)
ListIterator<V>
listIterator()
ListIterator<V>
listIterator(int index)
void
move(int fromIndex, int toIndex)
void
move(int fromIndex, int toIndex, Object key)
ListLaneView<V>
observe(Object observer)
V
remove(int index)
V
remove(int index, Object key)
boolean
remove(Object o)
boolean
removeAll(Collection<?> elements)
boolean
retainAll(Collection<?> elements)
V
set(int index, V element)
V
set(int index, V element, Object key)
void
setValueForm(Form<V> valueForm)
int
size()
KeyedList<V>
snapshot()
List<V>
subList(int fromIndex, int toIndex)
void
take(int upper)
Object[]
toArray()
<T> T[]
toArray(T[] a)
protected Object
typesafeObservers(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 void
willLoad()
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, closeDownlink, debug, error, hostUri, info, laneContext, laneDidFail, laneUri, meshUri, nodeUri, openDownlink, policy, pushDown, 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, 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:
agentContext
in classLaneView
-
laneBinding
public ListLaneModel laneBinding()
- Specified by:
laneBinding
in classLaneView
-
createLaneBinding
public ListLaneModel createLaneBinding()
- Specified by:
createLaneBinding
in classLaneView
-
valueForm
public <V2> ListLaneView<V2> valueForm(Form<V2> valueForm)
-
valueClass
public <V2> ListLaneView<V2> valueClass(Class<V2> valueClass)
- Specified by:
valueClass
in interfaceListLane<V>
-
isResident
public final boolean isResident()
- Specified by:
isResident
in interfaceListLane<V>
-
isResident
public ListLaneView<V> isResident(boolean isResident)
- Specified by:
isResident
in interfaceListLane<V>
-
isTransient
public final boolean isTransient()
- Specified by:
isTransient
in interfaceListLane<V>
-
isTransient
public ListLaneView<V> isTransient(boolean isTransient)
- Specified by:
isTransient
in interfaceListLane<V>
-
willLoad
protected void willLoad()
- Overrides:
willLoad
in classAbstractTierBinding
-
close
public void close()
-
observe
public ListLaneView<V> observe(Object observer)
- Specified by:
observe
in interfaceLane
- Specified by:
observe
in interfaceListLane<V>
- Specified by:
observe
in interfaceObservable<V>
- Specified by:
observe
in interfaceObservableList<V>
- Specified by:
observe
in interfaceWarpLane
- Overrides:
observe
in classWarpLaneView
-
unobserve
public ListLaneView<V> unobserve(Object observer)
- Specified by:
unobserve
in interfaceLane
- Specified by:
unobserve
in interfaceListLane<V>
- Specified by:
unobserve
in interfaceObservable<V>
- Specified by:
unobserve
in interfaceObservableList<V>
- Specified by:
unobserve
in interfaceWarpLane
- Overrides:
unobserve
in classWarpLaneView
-
willUpdate
public ListLaneView<V> willUpdate(WillUpdateIndex<V> willUpdate)
- Specified by:
willUpdate
in interfaceListLane<V>
- Specified by:
willUpdate
in 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:
willRemove
in interfaceListLane<V>
- Specified by:
willRemove
in 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:
willCommand
in interfaceListLane<V>
- Specified by:
willCommand
in interfaceWarpLane
- Specified by:
willCommand
in classWarpLaneView
-
didCommand
public ListLaneView<V> didCommand(DidCommand didCommand)
- Specified by:
didCommand
in interfaceListLane<V>
- Specified by:
didCommand
in interfaceWarpLane
- Specified by:
didCommand
in classWarpLaneView
-
willUplink
public ListLaneView<V> willUplink(WillUplink willUplink)
- Specified by:
willUplink
in interfaceListLane<V>
- Specified by:
willUplink
in interfaceWarpLane
- Specified by:
willUplink
in 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:
containsAll
in interfaceCollection<V>
- Specified by:
containsAll
in 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:
lastIndexOf
in interfaceList<V>
-
listIterator
public ListIterator<V> listIterator()
- Specified by:
listIterator
in interfaceList<V>
-
listIterator
public ListIterator<V> listIterator(int index)
- Specified by:
listIterator
in 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:
keyIterator
in interfaceKeyedList<V>
-
entryIterator
public ListIterator<Map.Entry<Object,V>> entryIterator()
- Specified by:
entryIterator
in interfaceKeyedList<V>
-
-