- java.lang.Object
-
- swim.runtime.lane.LaneView
-
- swim.runtime.lane.ListLaneView<V>
-
- All Implemented Interfaces:
Iterable<V>,Collection<V>,List<V>,swim.api.http.HttpLane<Object>,swim.api.lane.Lane,swim.api.lane.ListLane<V>,swim.observable.Observable<Object>,swim.observable.ObservableList<V>,swim.util.KeyedList<V>,swim.util.Log
public class ListLaneView<V> extends LaneView 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
-
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>decodeRequest(swim.api.http.function.DecodeRequestHttp<Object> decodeRequest)ListLaneView<V>didClear(swim.observable.function.DidClear didClear)ListLaneView<V>didCommand(swim.api.lane.function.DidCommand didCommand)ListLaneView<V>didDrop(swim.observable.function.DidDrop didDrop)ListLaneView<V>didEnter(swim.api.lane.function.DidEnter didEnter)ListLaneView<V>didLeave(swim.api.lane.function.DidLeave didLeave)ListLaneView<V>didMove(swim.observable.function.DidMoveIndex<V> didMove)ListLaneView<V>didRemove(swim.observable.function.DidRemoveIndex<V> didRemove)ListLaneView<V>didRequest(swim.api.http.function.DidRequestHttp<Object> didRequest)ListLaneView<V>didRespond(swim.api.http.function.DidRespondHttp<?> didRespond)ListLaneView<V>didTake(swim.observable.function.DidTake didTake)ListLaneView<V>didUpdate(swim.observable.function.DidUpdateIndex<V> didUpdate)ListLaneView<V>didUplink(swim.api.lane.function.DidUplink didUplink)protected booleandispatchDidClear(swim.api.Link link, boolean preemptive)protected booleandispatchDidDrop(swim.api.Link link, int lower, boolean preemptive)protected booleandispatchDidMove(swim.api.Link link, int fromIndex, int toIndex, V value, boolean preemptive)protected booleandispatchDidRemove(swim.api.Link link, int index, V oldValue, boolean preemptive)protected booleandispatchDidTake(swim.api.Link link, int upper, boolean preemptive)protected booleandispatchDidUpdate(swim.api.Link link, int index, V newValue, V oldValue, boolean preemptive)protected booleandispatchWillClear(swim.api.Link link, boolean preemptive)protected booleandispatchWillDrop(swim.api.Link link, int lower, boolean preemptive)protected booleandispatchWillMove(swim.api.Link link, int fromIndex, int toIndex, V value, boolean preemptive)protected booleandispatchWillRemove(swim.api.Link link, int index, boolean preemptive)protected booleandispatchWillTake(swim.api.Link link, int upper, boolean preemptive)protected Map.Entry<Boolean,V>dispatchWillUpdate(swim.api.Link link, int index, V newValue, boolean preemptive)ListLaneView<V>doRespond(swim.api.http.function.DoRespondHttp<Object> doRespond)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)ListLaneModelgetLaneBinding()intindexOf(Object o)booleanisEmpty()booleanisResident()ListLaneView<V>isResident(boolean isResident)booleanisSigned()ListLaneView<V>isSigned(boolean isSigned)booleanisTransient()ListLaneView<V>isTransient(boolean isTransient)Iterator<V>iterator()ListIterator<Object>keyIterator()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.lane.function.WillCommand willCommand)ListLaneView<V>willDrop(swim.observable.function.WillDrop willDrop)ListLaneView<V>willEnter(swim.api.lane.function.WillEnter willEnter)ListLaneView<V>willLeave(swim.api.lane.function.WillLeave willLeave)ListLaneView<V>willMove(swim.observable.function.WillMoveIndex<V> willMove)ListLaneView<V>willRemove(swim.observable.function.WillRemoveIndex willRemove)ListLaneView<V>willRequest(swim.api.http.function.WillRequestHttp<?> willRequest)ListLaneView<V>willRespond(swim.api.http.function.WillRespondHttp<?> willRespond)ListLaneView<V>willTake(swim.observable.function.WillTake willTake)ListLaneView<V>willUpdate(swim.observable.function.WillUpdateIndex<V> willUpdate)ListLaneView<V>willUplink(swim.api.lane.function.WillUplink willUplink)-
Methods inherited from class swim.runtime.lane.LaneView
debug, dispatchDecodeRequest, dispatchDidCommand, dispatchDidEnter, dispatchDidLeave, dispatchDidRequest, dispatchDidRespond, dispatchDidUplink, dispatchDoRespond, dispatchWillCommand, dispatchWillEnter, dispatchWillLeave, dispatchWillRequest, dispatchWillRespond, dispatchWillUplink, error, hostUri, info, laneDecodeRequest, laneDidCommand, laneDidEnter, laneDidFail, laneDidLeave, laneDidRequest, laneDidRespond, laneDidUplink, laneDoRespond, laneUri, laneWillCommand, laneWillEnter, laneWillLeave, laneWillRequest, laneWillRespond, laneWillUplink, nodeUri, trace, unwrapLane, warn
-
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 swim.api.lane.Lane
debug, error, hostUri, info, laneUri, nodeUri, trace, warn
-
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
-
getLaneBinding
public ListLaneModel getLaneBinding()
- Specified by:
getLaneBindingin 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>
-
isSigned
public final boolean isSigned()
- Specified by:
isSignedin interfaceswim.api.lane.Lane
-
isSigned
public ListLaneView<V> isSigned(boolean isSigned)
- Specified by:
isSignedin interfaceswim.api.lane.Lane- Specified by:
isSignedin interfaceswim.api.lane.ListLane<V>
-
close
public void close()
-
observe
public ListLaneView<V> observe(Object observer)
- Specified by:
observein interfaceswim.api.http.HttpLane<V>- Specified by:
observein interfaceswim.api.lane.Lane- Specified by:
observein interfaceswim.api.lane.ListLane<V>- Specified by:
observein interfaceswim.observable.Observable<V>- Specified by:
observein interfaceswim.observable.ObservableList<V>- Overrides:
observein classLaneView
-
unobserve
public ListLaneView<V> unobserve(Object observer)
- Specified by:
unobservein interfaceswim.api.http.HttpLane<V>- Specified by:
unobservein interfaceswim.api.lane.Lane- Specified by:
unobservein interfaceswim.api.lane.ListLane<V>- Specified by:
unobservein interfaceswim.observable.Observable<V>- Specified by:
unobservein interfaceswim.observable.ObservableList<V>- Overrides:
unobservein classLaneView
-
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.lane.function.WillCommand willCommand)
- Specified by:
willCommandin interfaceswim.api.lane.Lane- Specified by:
willCommandin interfaceswim.api.lane.ListLane<V>- Specified by:
willCommandin classLaneView
-
didCommand
public ListLaneView<V> didCommand(swim.api.lane.function.DidCommand didCommand)
- Specified by:
didCommandin interfaceswim.api.lane.Lane- Specified by:
didCommandin interfaceswim.api.lane.ListLane<V>- Specified by:
didCommandin classLaneView
-
willUplink
public ListLaneView<V> willUplink(swim.api.lane.function.WillUplink willUplink)
- Specified by:
willUplinkin interfaceswim.api.lane.Lane- Specified by:
willUplinkin interfaceswim.api.lane.ListLane<V>- Specified by:
willUplinkin classLaneView
-
didUplink
public ListLaneView<V> didUplink(swim.api.lane.function.DidUplink didUplink)
-
willEnter
public ListLaneView<V> willEnter(swim.api.lane.function.WillEnter willEnter)
-
didEnter
public ListLaneView<V> didEnter(swim.api.lane.function.DidEnter didEnter)
-
willLeave
public ListLaneView<V> willLeave(swim.api.lane.function.WillLeave willLeave)
-
didLeave
public ListLaneView<V> didLeave(swim.api.lane.function.DidLeave didLeave)
-
decodeRequest
public ListLaneView<V> decodeRequest(swim.api.http.function.DecodeRequestHttp<Object> decodeRequest)
- Specified by:
decodeRequestin interfaceswim.api.http.HttpLane<V>- Specified by:
decodeRequestin interfaceswim.api.lane.Lane- Specified by:
decodeRequestin interfaceswim.api.lane.ListLane<V>- Specified by:
decodeRequestin classLaneView
-
willRequest
public ListLaneView<V> willRequest(swim.api.http.function.WillRequestHttp<?> willRequest)
- Specified by:
willRequestin interfaceswim.api.http.HttpLane<V>- Specified by:
willRequestin interfaceswim.api.lane.Lane- Specified by:
willRequestin interfaceswim.api.lane.ListLane<V>- Specified by:
willRequestin classLaneView
-
didRequest
public ListLaneView<V> didRequest(swim.api.http.function.DidRequestHttp<Object> didRequest)
- Specified by:
didRequestin interfaceswim.api.http.HttpLane<V>- Specified by:
didRequestin interfaceswim.api.lane.Lane- Specified by:
didRequestin interfaceswim.api.lane.ListLane<V>- Specified by:
didRequestin classLaneView
-
doRespond
public ListLaneView<V> doRespond(swim.api.http.function.DoRespondHttp<Object> doRespond)
-
willRespond
public ListLaneView<V> willRespond(swim.api.http.function.WillRespondHttp<?> willRespond)
- Specified by:
willRespondin interfaceswim.api.http.HttpLane<V>- Specified by:
willRespondin interfaceswim.api.lane.Lane- Specified by:
willRespondin interfaceswim.api.lane.ListLane<V>- Specified by:
willRespondin classLaneView
-
didRespond
public ListLaneView<V> didRespond(swim.api.http.function.DidRespondHttp<?> didRespond)
- Specified by:
didRespondin interfaceswim.api.http.HttpLane<V>- Specified by:
didRespondin interfaceswim.api.lane.Lane- Specified by:
didRespondin interfaceswim.api.lane.ListLane<V>- Specified by:
didRespondin classLaneView
-
dispatchWillUpdate
protected Map.Entry<Boolean,V> dispatchWillUpdate(swim.api.Link link, int index, V newValue, boolean preemptive)
-
dispatchDidUpdate
protected boolean dispatchDidUpdate(swim.api.Link link, int index, V newValue, V oldValue, boolean preemptive)
-
dispatchWillMove
protected boolean dispatchWillMove(swim.api.Link link, int fromIndex, int toIndex, V value, boolean preemptive)
-
dispatchDidMove
protected boolean dispatchDidMove(swim.api.Link link, int fromIndex, int toIndex, V value, boolean preemptive)
-
dispatchWillRemove
protected boolean dispatchWillRemove(swim.api.Link link, int index, boolean preemptive)
-
dispatchDidRemove
protected boolean dispatchDidRemove(swim.api.Link link, int index, V oldValue, boolean preemptive)
-
dispatchWillDrop
protected boolean dispatchWillDrop(swim.api.Link link, int lower, boolean preemptive)
-
dispatchDidDrop
protected boolean dispatchDidDrop(swim.api.Link link, int lower, boolean preemptive)
-
dispatchWillTake
protected boolean dispatchWillTake(swim.api.Link link, int upper, boolean preemptive)
-
dispatchDidTake
protected boolean dispatchDidTake(swim.api.Link link, int upper, boolean preemptive)
-
dispatchWillClear
protected boolean dispatchWillClear(swim.api.Link link, boolean preemptive)
-
dispatchDidClear
protected 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>
-
-