- java.lang.Object
-
- swim.runtime.DownlinkView
-
- swim.runtime.warp.WarpDownlinkView
-
- swim.runtime.downlink.ListDownlinkView<V>
-
- All Implemented Interfaces:
Iterable<V>,Collection<V>,List<V>,Downlink,ListDownlink<V>,Link,WarpDownlink,WarpLink,Observable<Object>,ObservableList<V>,KeyedList<V>,Log
public class ListDownlinkView<V> extends WarpDownlinkView implements ListDownlink<V>
-
-
Field Summary
Fields Modifier and Type Field Description protected ListDownlinkModelmodelprotected static intSTATEFULprotected Form<V>valueForm-
Fields inherited from class swim.runtime.warp.WarpDownlinkView
body, flags, hostUri, KEEP_LINKED, KEEP_SYNCED, laneUri, meshUri, nodeUri, prio, rate
-
Fields inherited from class swim.runtime.DownlinkView
cellContext, observers, stage
-
-
Constructor Summary
Constructors Constructor Description ListDownlinkView(CellContext cellContext, Stage stage, Uri meshUri, Uri hostUri, Uri nodeUri, Uri laneUri, float prio, float rate, Value body, int flags, Form<V> valueForm, Object observers)ListDownlinkView(CellContext cellContext, Stage stage, Uri meshUri, Uri hostUri, Uri nodeUri, Uri laneUri, float prio, float rate, Value body, 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)ListDownlinkView<V>body(Value body)voidclear()voidclose()booleancontains(Object o)booleancontainsAll(Collection<?> elements)ListDownlinkModelcreateDownlinkModel()ListDownlinkView<V>didClear(DidClear didClear)ListDownlinkView<V>didClose(DidClose didClose)ListDownlinkView<V>didConnect(DidConnect didConnect)ListDownlinkView<V>didDisconnect(DidDisconnect didDisconnect)ListDownlinkView<V>didDrop(DidDrop didDrop)ListDownlinkView<V>didFail(DidFail didFail)ListDownlinkView<V>didLink(DidLink didLink)ListDownlink<V>didMove(DidMoveIndex<V> didMove)ListDownlinkView<V>didReceive(DidReceive didReceive)ListDownlinkView<V>didRemove(DidRemoveIndex<V> didRemove)ListDownlinkView<V>didSync(DidSync didSync)ListDownlinkView<V>didTake(DidTake didTake)ListDownlinkView<V>didUnlink(DidUnlink didUnlink)ListDownlinkView<V>didUpdate(DidUpdateIndex<V> didUpdate)booleandispatchDidClear(boolean preemptive)booleandispatchDidDrop(int lower, boolean preemptive)booleandispatchDidMove(int fromIndex, int toIndex, V value, boolean preemptive)booleandispatchDidRemove(int index, V oldValue, boolean preemptive)booleandispatchDidTake(int upper, boolean preemptive)booleandispatchDidUpdate(int index, V newValue, V oldValue, boolean preemptive)booleandispatchWillClear(boolean preemptive)booleandispatchWillDrop(int lower, boolean preemptive)booleandispatchWillMove(int fromIndex, int toIndex, V value, boolean preemptive)booleandispatchWillRemove(int index, boolean preemptive)booleandispatchWillTake(int upper, boolean preemptive)Map.Entry<Boolean,V>dispatchWillUpdate(int index, V newValue, boolean preemptive)voiddownlinkDidClear()voiddownlinkDidDrop(int lower)voiddownlinkDidInsert(int index, V newValue)voiddownlinkDidInsertValue(int index, Value newValue)voiddownlinkDidMove(int fromIndex, int toIndex, V value)voiddownlinkDidMoveValue(int fromIndex, int toIndex, Value value)voiddownlinkDidRemove(int index, V oldValue)voiddownlinkDidRemoveValue(int index, Value oldValue)voiddownlinkDidTake(int upper)voiddownlinkDidUpdate(int index, V newValue, V oldValue)voiddownlinkDidUpdateValue(int index, Value newValue, Value oldValue)ListDownlinkModeldownlinkModel()voiddownlinkWillClear()voiddownlinkWillDrop(int lower)VdownlinkWillInsert(int index, V newValue)ValuedownlinkWillInsertValue(int index, Value newValue)voiddownlinkWillMove(int fromIndex, int toIndex, V value)voiddownlinkWillMoveValue(int fromIndex, int toIndex, Value value)voiddownlinkWillRemove(int index)voiddownlinkWillRemoveValue(int index)voiddownlinkWillTake(int upper)VdownlinkWillUpdate(int index, V newValue)ValuedownlinkWillUpdateValue(int index, Value newValue)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)ListDownlinkView<V>hostUri(String hostUri)ListDownlinkView<V>hostUri(Uri hostUri)intindexOf(Object o)booleanisEmpty()booleanisStateful()ListDownlinkView<V>isStateful(boolean isStateful)Iterator<V>iterator()ListDownlinkView<V>keepLinked(boolean keepLinked)ListDownlinkView<V>keepSynced(boolean keepSynced)ListIterator<Object>keyIterator()ListDownlinkView<V>laneUri(String laneUri)ListDownlinkView<V>laneUri(Uri laneUri)intlastIndexOf(Object o)ListIterator<V>listIterator()ListIterator<V>listIterator(int index)voidmove(int fromIndex, int toIndex)voidmove(int fromIndex, int toIndex, Object key)ListDownlinkView<V>nodeUri(String nodeUri)ListDownlinkView<V>nodeUri(Uri nodeUri)ListDownlinkView<V>observe(Object observer)ListDownlinkView<V>open()ListDownlinkView<V>prio(float prio)ListDownlinkView<V>rate(float rate)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)intsize()List<V>subList(int fromIndex, int toIndex)voidtake(int upper)Object[]toArray()<T> T[]toArray(T[] a)protected ObjecttypesafeObservers(Object observers)ListDownlinkView<V>unobserve(Object observer)<V2> ListDownlinkView<V2>valueClass(Class<V2> valueClass)Form<V>valueForm()<V2> ListDownlinkView<V2>valueForm(Form<V2> valueForm)ListDownlinkView<V>willClear(WillClear willClear)ListDownlinkView<V>willCommand(WillCommand willCommand)ListDownlinkView<V>willDrop(WillDrop willDrop)ListDownlinkView<V>willLink(WillLink willLink)ListDownlink<V>willMove(WillMoveIndex<V> willMove)ListDownlinkView<V>willReceive(WillReceive willReceive)ListDownlinkView<V>willRemove(WillRemoveIndex willRemove)ListDownlinkView<V>willSync(WillSync willSync)ListDownlinkView<V>willTake(WillTake willTake)ListDownlinkView<V>willUnlink(WillUnlink willUnlink)ListDownlinkView<V>willUpdate(WillUpdateIndex<V> willUpdate)-
Methods inherited from class swim.runtime.warp.WarpDownlinkView
body, command, command, command, command, dispatchDidLink, dispatchDidReceive, dispatchDidSync, dispatchDidUnlink, dispatchWillCommand, dispatchWillLink, dispatchWillReceive, dispatchWillSync, dispatchWillUnlink, downlinkDidLink, downlinkDidReceive, downlinkDidSync, downlinkDidUnlink, downlinkWillCommand, downlinkWillLink, downlinkWillReceive, downlinkWillSync, downlinkWillUnlink, hostUri, keepLinked, keepSynced, laneUri, meshUri, nodeUri, prio, rate
-
Methods inherited from class swim.runtime.DownlinkView
cellContext, cipherSuite, debug, dispatchDidClose, dispatchDidConnect, dispatchDidDisconnect, dispatchDidFail, downlinkDidClose, downlinkDidConnect, downlinkDidDisconnect, downlinkDidFail, error, fail, info, isConnected, isRemote, isSecure, localAddress, localCertificates, localIdentity, localPrincipal, remoteAddress, remoteCertificates, remoteIdentity, remotePrincipal, securityProtocol, stage, trace, 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.Link
cipherSuite, hostUri, isConnected, isRemote, isSecure, laneUri, localAddress, localCertificates, localIdentity, localPrincipal, nodeUri, remoteAddress, remoteCertificates, remoteIdentity, remotePrincipal, securityProtocol
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Methods inherited from interface swim.api.warp.WarpDownlink
body, command, command, command, command, keepLinked, keepSynced, prio, rate
-
-
-
-
Field Detail
-
STATEFUL
protected static final int STATEFUL
- See Also:
- Constant Field Values
-
model
protected ListDownlinkModel model
-
-
Method Detail
-
downlinkModel
public ListDownlinkModel downlinkModel()
- Specified by:
downlinkModelin classWarpDownlinkView
-
hostUri
public ListDownlinkView<V> hostUri(Uri hostUri)
- Specified by:
hostUriin interfaceListDownlink<V>- Specified by:
hostUriin interfaceWarpDownlink- Specified by:
hostUriin classWarpDownlinkView
-
hostUri
public ListDownlinkView<V> hostUri(String hostUri)
- Specified by:
hostUriin interfaceListDownlink<V>- Specified by:
hostUriin interfaceWarpDownlink- Specified by:
hostUriin classWarpDownlinkView
-
nodeUri
public ListDownlinkView<V> nodeUri(Uri nodeUri)
- Specified by:
nodeUriin interfaceListDownlink<V>- Specified by:
nodeUriin interfaceWarpDownlink- Specified by:
nodeUriin classWarpDownlinkView
-
nodeUri
public ListDownlinkView<V> nodeUri(String nodeUri)
- Specified by:
nodeUriin interfaceListDownlink<V>- Specified by:
nodeUriin interfaceWarpDownlink- Specified by:
nodeUriin classWarpDownlinkView
-
laneUri
public ListDownlinkView<V> laneUri(Uri laneUri)
- Specified by:
laneUriin interfaceListDownlink<V>- Specified by:
laneUriin interfaceWarpDownlink- Specified by:
laneUriin classWarpDownlinkView
-
laneUri
public ListDownlinkView<V> laneUri(String laneUri)
- Specified by:
laneUriin interfaceListDownlink<V>- Specified by:
laneUriin interfaceWarpDownlink- Specified by:
laneUriin classWarpDownlinkView
-
prio
public ListDownlinkView<V> prio(float prio)
- Specified by:
prioin interfaceListDownlink<V>- Specified by:
prioin interfaceWarpDownlink- Specified by:
prioin classWarpDownlinkView
-
rate
public ListDownlinkView<V> rate(float rate)
- Specified by:
ratein interfaceListDownlink<V>- Specified by:
ratein interfaceWarpDownlink- Specified by:
ratein classWarpDownlinkView
-
body
public ListDownlinkView<V> body(Value body)
- Specified by:
bodyin interfaceListDownlink<V>- Specified by:
bodyin interfaceWarpDownlink- Specified by:
bodyin classWarpDownlinkView
-
keepLinked
public ListDownlinkView<V> keepLinked(boolean keepLinked)
- Specified by:
keepLinkedin interfaceListDownlink<V>- Specified by:
keepLinkedin interfaceWarpDownlink- Specified by:
keepLinkedin classWarpDownlinkView
-
keepSynced
public ListDownlinkView<V> keepSynced(boolean keepSynced)
- Specified by:
keepSyncedin interfaceListDownlink<V>- Specified by:
keepSyncedin interfaceWarpDownlink- Specified by:
keepSyncedin classWarpDownlinkView
-
isStateful
public final boolean isStateful()
- Specified by:
isStatefulin interfaceListDownlink<V>
-
isStateful
public ListDownlinkView<V> isStateful(boolean isStateful)
- Specified by:
isStatefulin interfaceListDownlink<V>
-
valueForm
public final Form<V> valueForm()
- Specified by:
valueFormin interfaceListDownlink<V>
-
valueForm
public <V2> ListDownlinkView<V2> valueForm(Form<V2> valueForm)
- Specified by:
valueFormin interfaceListDownlink<V>
-
valueClass
public <V2> ListDownlinkView<V2> valueClass(Class<V2> valueClass)
- Specified by:
valueClassin interfaceListDownlink<V>
-
observe
public ListDownlinkView<V> observe(Object observer)
- Specified by:
observein interfaceDownlink- Specified by:
observein interfaceLink- Specified by:
observein interfaceListDownlink<V>- Specified by:
observein interfaceObservable<V>- Specified by:
observein interfaceObservableList<V>- Specified by:
observein interfaceWarpDownlink- Overrides:
observein classWarpDownlinkView
-
unobserve
public ListDownlinkView<V> unobserve(Object observer)
- Specified by:
unobservein interfaceDownlink- Specified by:
unobservein interfaceLink- Specified by:
unobservein interfaceListDownlink<V>- Specified by:
unobservein interfaceObservable<V>- Specified by:
unobservein interfaceObservableList<V>- Specified by:
unobservein interfaceWarpDownlink- Overrides:
unobservein classWarpDownlinkView
-
willMove
public ListDownlink<V> willMove(WillMoveIndex<V> willMove)
- Specified by:
willMovein interfaceListDownlink<V>- Specified by:
willMovein interfaceObservableList<V>
-
didMove
public ListDownlink<V> didMove(DidMoveIndex<V> didMove)
- Specified by:
didMovein interfaceListDownlink<V>- Specified by:
didMovein interfaceObservableList<V>
-
willUpdate
public ListDownlinkView<V> willUpdate(WillUpdateIndex<V> willUpdate)
- Specified by:
willUpdatein interfaceListDownlink<V>- Specified by:
willUpdatein interfaceObservableList<V>
-
didUpdate
public ListDownlinkView<V> didUpdate(DidUpdateIndex<V> didUpdate)
- Specified by:
didUpdatein interfaceListDownlink<V>- Specified by:
didUpdatein interfaceObservableList<V>
-
willRemove
public ListDownlinkView<V> willRemove(WillRemoveIndex willRemove)
- Specified by:
willRemovein interfaceListDownlink<V>- Specified by:
willRemovein interfaceObservableList<V>
-
didRemove
public ListDownlinkView<V> didRemove(DidRemoveIndex<V> didRemove)
- Specified by:
didRemovein interfaceListDownlink<V>- Specified by:
didRemovein interfaceObservableList<V>
-
willDrop
public ListDownlinkView<V> willDrop(WillDrop willDrop)
- Specified by:
willDropin interfaceListDownlink<V>- Specified by:
willDropin interfaceObservableList<V>
-
didDrop
public ListDownlinkView<V> didDrop(DidDrop didDrop)
- Specified by:
didDropin interfaceListDownlink<V>- Specified by:
didDropin interfaceObservableList<V>
-
willTake
public ListDownlinkView<V> willTake(WillTake willTake)
- Specified by:
willTakein interfaceListDownlink<V>- Specified by:
willTakein interfaceObservableList<V>
-
didTake
public ListDownlinkView<V> didTake(DidTake didTake)
- Specified by:
didTakein interfaceListDownlink<V>- Specified by:
didTakein interfaceObservableList<V>
-
willClear
public ListDownlinkView<V> willClear(WillClear willClear)
- Specified by:
willClearin interfaceListDownlink<V>- Specified by:
willClearin interfaceObservableList<V>
-
didClear
public ListDownlinkView<V> didClear(DidClear didClear)
- Specified by:
didClearin interfaceListDownlink<V>- Specified by:
didClearin interfaceObservableList<V>
-
willReceive
public ListDownlinkView<V> willReceive(WillReceive willReceive)
- Specified by:
willReceivein interfaceListDownlink<V>- Specified by:
willReceivein interfaceWarpDownlink- Specified by:
willReceivein classWarpDownlinkView
-
didReceive
public ListDownlinkView<V> didReceive(DidReceive didReceive)
- Specified by:
didReceivein interfaceListDownlink<V>- Specified by:
didReceivein interfaceWarpDownlink- Specified by:
didReceivein classWarpDownlinkView
-
willCommand
public ListDownlinkView<V> willCommand(WillCommand willCommand)
- Specified by:
willCommandin interfaceListDownlink<V>- Specified by:
willCommandin interfaceWarpDownlink- Specified by:
willCommandin classWarpDownlinkView
-
willLink
public ListDownlinkView<V> willLink(WillLink willLink)
- Specified by:
willLinkin interfaceListDownlink<V>- Specified by:
willLinkin interfaceWarpDownlink- Specified by:
willLinkin classWarpDownlinkView
-
didLink
public ListDownlinkView<V> didLink(DidLink didLink)
- Specified by:
didLinkin interfaceListDownlink<V>- Specified by:
didLinkin interfaceWarpDownlink- Specified by:
didLinkin classWarpDownlinkView
-
willSync
public ListDownlinkView<V> willSync(WillSync willSync)
- Specified by:
willSyncin interfaceListDownlink<V>- Specified by:
willSyncin interfaceWarpDownlink- Specified by:
willSyncin classWarpDownlinkView
-
didSync
public ListDownlinkView<V> didSync(DidSync didSync)
- Specified by:
didSyncin interfaceListDownlink<V>- Specified by:
didSyncin interfaceWarpDownlink- Specified by:
didSyncin classWarpDownlinkView
-
willUnlink
public ListDownlinkView<V> willUnlink(WillUnlink willUnlink)
- Specified by:
willUnlinkin interfaceListDownlink<V>- Specified by:
willUnlinkin interfaceWarpDownlink- Specified by:
willUnlinkin classWarpDownlinkView
-
didUnlink
public ListDownlinkView<V> didUnlink(DidUnlink didUnlink)
- Specified by:
didUnlinkin interfaceListDownlink<V>- Specified by:
didUnlinkin interfaceWarpDownlink- Specified by:
didUnlinkin classWarpDownlinkView
-
didConnect
public ListDownlinkView<V> didConnect(DidConnect didConnect)
- Specified by:
didConnectin interfaceDownlink- Specified by:
didConnectin interfaceListDownlink<V>- Specified by:
didConnectin interfaceWarpDownlink- Specified by:
didConnectin classWarpDownlinkView
-
didDisconnect
public ListDownlinkView<V> didDisconnect(DidDisconnect didDisconnect)
- Specified by:
didDisconnectin interfaceDownlink- Specified by:
didDisconnectin interfaceListDownlink<V>- Specified by:
didDisconnectin interfaceWarpDownlink- Specified by:
didDisconnectin classWarpDownlinkView
-
didClose
public ListDownlinkView<V> didClose(DidClose didClose)
- Specified by:
didClosein interfaceDownlink- Specified by:
didClosein interfaceListDownlink<V>- Specified by:
didClosein interfaceWarpDownlink- Specified by:
didClosein classWarpDownlinkView
-
didFail
public ListDownlinkView<V> didFail(DidFail didFail)
- Specified by:
didFailin interfaceDownlink- Specified by:
didFailin interfaceListDownlink<V>- Specified by:
didFailin interfaceWarpDownlink- Specified by:
didFailin classWarpDownlinkView
-
dispatchWillUpdate
public Map.Entry<Boolean,V> dispatchWillUpdate(int index, V newValue, boolean preemptive)
-
dispatchDidUpdate
public boolean dispatchDidUpdate(int index, V newValue, V oldValue, boolean preemptive)
-
dispatchWillMove
public boolean dispatchWillMove(int fromIndex, int toIndex, V value, boolean preemptive)
-
dispatchDidMove
public boolean dispatchDidMove(int fromIndex, int toIndex, V value, boolean preemptive)
-
dispatchWillRemove
public boolean dispatchWillRemove(int index, boolean preemptive)
-
dispatchDidRemove
public boolean dispatchDidRemove(int index, V oldValue, boolean preemptive)
-
dispatchWillDrop
public boolean dispatchWillDrop(int lower, boolean preemptive)
-
dispatchDidDrop
public boolean dispatchDidDrop(int lower, boolean preemptive)
-
dispatchWillTake
public boolean dispatchWillTake(int upper, boolean preemptive)
-
dispatchDidTake
public boolean dispatchDidTake(int upper, boolean preemptive)
-
dispatchWillClear
public boolean dispatchWillClear(boolean preemptive)
-
dispatchDidClear
public boolean dispatchDidClear(boolean preemptive)
-
downlinkDidInsertValue
public void downlinkDidInsertValue(int index, Value newValue)
-
downlinkDidInsert
public void downlinkDidInsert(int index, V newValue)
-
downlinkDidUpdateValue
public void downlinkDidUpdateValue(int index, Value newValue, Value oldValue)
-
downlinkWillMoveValue
public void downlinkWillMoveValue(int fromIndex, int toIndex, Value value)
-
downlinkDidMoveValue
public void downlinkDidMoveValue(int fromIndex, int toIndex, Value value)
-
downlinkWillMove
public void downlinkWillMove(int fromIndex, int toIndex, V value)
-
downlinkDidMove
public void downlinkDidMove(int fromIndex, int toIndex, V value)
-
downlinkWillRemoveValue
public void downlinkWillRemoveValue(int index)
-
downlinkDidRemoveValue
public void downlinkDidRemoveValue(int index, Value oldValue)
-
downlinkWillRemove
public void downlinkWillRemove(int index)
-
downlinkDidRemove
public void downlinkDidRemove(int index, V oldValue)
-
downlinkWillDrop
public void downlinkWillDrop(int lower)
-
downlinkDidDrop
public void downlinkDidDrop(int lower)
-
downlinkWillTake
public void downlinkWillTake(int upper)
-
downlinkDidTake
public void downlinkDidTake(int upper)
-
downlinkWillClear
public void downlinkWillClear()
-
downlinkDidClear
public void downlinkDidClear()
-
createDownlinkModel
public ListDownlinkModel createDownlinkModel()
- Specified by:
createDownlinkModelin classWarpDownlinkView
-
open
public ListDownlinkView<V> open()
- Specified by:
openin interfaceDownlink- Specified by:
openin interfaceListDownlink<V>- Specified by:
openin interfaceWarpDownlink- Specified by:
openin classWarpDownlinkView
-
close
public void close()
- Specified by:
closein interfaceLink- Overrides:
closein classDownlinkView
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Object o)
-
size
public int size()
-
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>
-
drop
public void drop(int lower)
- Specified by:
dropin interfaceListDownlink<V>- Specified by:
dropin interfaceObservableList<V>
-
take
public void take(int upper)
- Specified by:
takein interfaceListDownlink<V>- Specified by:
takein interfaceObservableList<V>
-
clear
public void clear()
-
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)
-
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>
-
-