Module swim.api

Class MapDownlinkRecord

java.lang.Object
swim.structure.Item
swim.structure.Value
swim.structure.Record
swim.dataflow.AbstractRecordOutlet
swim.api.downlink.DownlinkRecord
swim.api.downlink.MapDownlinkRecord
All Implemented Interfaces:
Comparable<swim.structure.Item>, Iterable<swim.structure.Item>, Collection<swim.structure.Item>, List<swim.structure.Item>, swim.codec.Debug, swim.codec.Display, swim.concurrent.Preemptive, swim.dataflow.RecordOutlet, swim.observable.function.DidClear, swim.observable.function.DidDrop, swim.observable.function.DidRemoveKey<swim.structure.Value,swim.structure.Value>, swim.observable.function.DidTake, swim.observable.function.DidUpdateKey<swim.structure.Value,swim.structure.Value>, swim.streamlet.MapOutlet<swim.structure.Value,swim.structure.Value,swim.structure.Record>, swim.streamlet.Outlet<swim.structure.Record>, swim.streamlet.StreamletScope<swim.structure.Value>, swim.util.Builder<swim.structure.Item,swim.structure.Record>, swim.util.PairBuilder<swim.structure.Value,swim.structure.Value,swim.structure.Record>

public class MapDownlinkRecord extends DownlinkRecord implements swim.observable.function.DidUpdateKey<swim.structure.Value,swim.structure.Value>, swim.observable.function.DidRemoveKey<swim.structure.Value,swim.structure.Value>, swim.observable.function.DidDrop, swim.observable.function.DidTake, swim.observable.function.DidClear
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final MapDownlink<swim.structure.Value,swim.structure.Value>
     

    Fields inherited from class swim.dataflow.AbstractRecordOutlet

    effects, outlets, outputs, version
  • Constructor Summary

    Constructors
    Constructor
    Description
    MapDownlinkRecord(MapDownlink<swim.structure.Value,swim.structure.Value> downlink)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(int index, swim.structure.Item item)
     
    boolean
    add(swim.structure.Item item)
     
    void
     
    boolean
     
    boolean
    containsKey(swim.structure.Value key)
     
    void
     
    void
    didDrop(int lower)
     
    void
    didRemove(swim.structure.Value key, swim.structure.Value oldValue)
     
    void
    didTake(int upper)
     
    void
    didUpdate(swim.structure.Value key, swim.structure.Value newValue, swim.structure.Value oldValue)
     
    MapDownlink<swim.structure.Value,swim.structure.Value>
     
    swim.structure.Item
    get(int index)
     
    swim.structure.Value
    get(String key)
     
    swim.structure.Value
    get(swim.structure.Value key)
     
    swim.structure.Value
     
    swim.structure.Value
    getAttr(swim.structure.Text key)
     
    swim.structure.Item
    getItem(int index)
     
    swim.structure.Value
     
    swim.structure.Value
    getSlot(swim.structure.Value key)
     
    boolean
     
    boolean
     
    boolean
     
    Iterator<swim.structure.Value>
     
    swim.structure.Value
    put(String key, swim.structure.Value newValue)
     
    swim.structure.Value
    put(swim.structure.Value key, swim.structure.Value newValue)
     
    swim.structure.Value
    putAttr(String key, swim.structure.Value newValue)
     
    swim.structure.Value
    putAttr(swim.structure.Text key, swim.structure.Value newValue)
     
    swim.structure.Value
    putSlot(String key, swim.structure.Value newValue)
     
    swim.structure.Value
    putSlot(swim.structure.Value key, swim.structure.Value newValue)
     
    swim.structure.Item
    remove(int index)
     
    boolean
     
    boolean
    removeKey(swim.structure.Value key)
     
    swim.structure.Item
    setItem(int index, swim.structure.Item newItem)
     
    int
     

    Methods inherited from class swim.dataflow.AbstractRecordOutlet

    bindOutput, containsOwnKey, decohereInput, decohereInputKey, didDecohereInput, didDecohereInputKey, didRecohereInput, didRecohereInputKey, disconnectInputs, disconnectOutputs, get, onDecohereInput, onDecohereInputKey, onRecohereInput, onRecohereInputKey, outlet, outlet, outputIterator, recohereInput, recohereInputKey, streamletContext, streamletScope, unbindOutput, unbindOutputs, willDecohereInput, willDecohereInputKey, willRecohereInput, willRecohereInputKey

    Methods inherited from class swim.structure.Record

    add, add, add, add, add, add, add, add, add, add, add, add, add, addAll, addAll, alias, appended, appended, asMutable, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, bind, body, branch, commit, compareTo, compareTo, concat, contains, contains, containsAll, containsValue, create, create, debug, empty, entrySet, equals, evaluate, fieldCount, fieldIterator, fieldSet, flattened, getField, getField, hashCode, head, header, headers, indexOf, isAliased, isConstant, isDefinite, isMutable, item, item, item, item, item, item, item, iterator, keySet, lastIndexOf, length, listIterator, listIterator, of, of, of, prepended, prepended, put, put, put, put, put, put, put, put, put, put, put, put, putAll, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, remove, removeAll, removed, removed, retainAll, set, setItem, setItem, setItem, setItem, setItem, setItem, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, stringValue, stringValue, subList, substitute, tag, tail, target, toArray, toArray, typeOrder, unflattened, updated, updated, updatedAttr, updatedAttr, updatedSlot, updatedSlot, valueCount, valueIterator, values

    Methods inherited from class swim.structure.Value

    absent, and, and, bitwiseAnd, bitwiseAnd, bitwiseNot, bitwiseOr, bitwiseOr, bitwiseXor, bitwiseXor, booleanValue, booleanValue, builder, byteValue, byteValue, charValue, charValue, conditional, conditional, divide, divide, doubleValue, doubleValue, eq, eq, extant, floatValue, floatValue, fromObject, ge, ge, gt, gt, integerValue, integerValue, intValue, intValue, inverse, isDefined, isDistinct, key, keyEquals, lambda, le, le, longValue, longValue, lt, lt, minus, minus, modulo, modulo, ne, ne, negative, not, numberValue, numberValue, or, or, plus, plus, positive, shortValue, shortValue, times, times, toValue

    Methods inherited from class swim.structure.Item

    appended, appended, appended, appended, appended, appended, cast, cast, coerce, coerce, display, evaluate, filter, filter, globalScope, invoke, max, min, precedence, prepended, prepended, prepended, prepended, prepended, prepended, substitute, toString, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Collection

    parallelStream, removeIf, stream, toArray

    Methods inherited from interface java.lang.Iterable

    forEach

    Methods inherited from interface java.util.List

    replaceAll, sort, spliterator

    Methods inherited from interface swim.streamlet.MapOutlet

    filter, map, memoize, reduce, watch

    Methods inherited from interface swim.streamlet.Outlet

    map, watch

    Methods inherited from interface swim.concurrent.Preemptive

    isPreemptive
  • Field Details

  • Constructor Details

    • MapDownlinkRecord

      public MapDownlinkRecord(MapDownlink<swim.structure.Value,swim.structure.Value> downlink)
  • Method Details

    • downlink

      public MapDownlink<swim.structure.Value,swim.structure.Value> downlink()
      Specified by:
      downlink in class DownlinkRecord
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Collection<swim.structure.Item>
      Specified by:
      isEmpty in interface List<swim.structure.Item>
      Specified by:
      isEmpty in class swim.structure.Record
    • isArray

      public boolean isArray()
      Overrides:
      isArray in class swim.structure.Record
    • isObject

      public boolean isObject()
      Overrides:
      isObject in class swim.structure.Record
    • size

      public int size()
      Specified by:
      size in interface Collection<swim.structure.Item>
      Specified by:
      size in interface List<swim.structure.Item>
      Specified by:
      size in class swim.structure.Record
    • containsKey

      public boolean containsKey(swim.structure.Value key)
      Specified by:
      containsKey in interface swim.streamlet.MapOutlet<swim.structure.Value,swim.structure.Value,swim.structure.Record>
      Overrides:
      containsKey in class swim.structure.Record
    • containsKey

      public boolean containsKey(String key)
      Overrides:
      containsKey in class swim.structure.Record
    • get

      public swim.structure.Value get(swim.structure.Value key)
      Specified by:
      get in interface swim.streamlet.MapOutlet<swim.structure.Value,swim.structure.Value,swim.structure.Record>
      Overrides:
      get in class swim.structure.Record
    • get

      public swim.structure.Value get(String key)
      Overrides:
      get in class swim.structure.Record
    • getAttr

      public swim.structure.Value getAttr(swim.structure.Text key)
      Overrides:
      getAttr in class swim.structure.Record
    • getAttr

      public swim.structure.Value getAttr(String key)
      Overrides:
      getAttr in class swim.structure.Record
    • getSlot

      public swim.structure.Value getSlot(swim.structure.Value key)
      Overrides:
      getSlot in class swim.structure.Record
    • getSlot

      public swim.structure.Value getSlot(String key)
      Overrides:
      getSlot in class swim.structure.Record
    • get

      public swim.structure.Item get(int index)
      Specified by:
      get in interface List<swim.structure.Item>
      Specified by:
      get in class swim.structure.Record
    • getItem

      public swim.structure.Item getItem(int index)
      Specified by:
      getItem in class swim.structure.Record
    • put

      public swim.structure.Value put(swim.structure.Value key, swim.structure.Value newValue)
      Overrides:
      put in class swim.structure.Record
    • put

      public swim.structure.Value put(String key, swim.structure.Value newValue)
      Overrides:
      put in class swim.structure.Record
    • putAttr

      public swim.structure.Value putAttr(swim.structure.Text key, swim.structure.Value newValue)
      Overrides:
      putAttr in class swim.structure.Record
    • putAttr

      public swim.structure.Value putAttr(String key, swim.structure.Value newValue)
      Overrides:
      putAttr in class swim.structure.Record
    • putSlot

      public swim.structure.Value putSlot(swim.structure.Value key, swim.structure.Value newValue)
      Overrides:
      putSlot in class swim.structure.Record
    • putSlot

      public swim.structure.Value putSlot(String key, swim.structure.Value newValue)
      Overrides:
      putSlot in class swim.structure.Record
    • setItem

      public swim.structure.Item setItem(int index, swim.structure.Item newItem)
      Specified by:
      setItem in class swim.structure.Record
    • add

      public boolean add(swim.structure.Item item)
      Specified by:
      add in interface swim.util.Builder<swim.structure.Item,swim.structure.Record>
      Specified by:
      add in interface Collection<swim.structure.Item>
      Specified by:
      add in interface List<swim.structure.Item>
      Specified by:
      add in class swim.structure.Record
    • add

      public void add(int index, swim.structure.Item item)
      Specified by:
      add in interface List<swim.structure.Item>
      Specified by:
      add in class swim.structure.Record
    • remove

      public swim.structure.Item remove(int index)
      Specified by:
      remove in interface List<swim.structure.Item>
      Specified by:
      remove in class swim.structure.Record
    • removeKey

      public boolean removeKey(swim.structure.Value key)
      Overrides:
      removeKey in class swim.structure.Record
    • removeKey

      public boolean removeKey(String key)
      Overrides:
      removeKey in class swim.structure.Record
    • clear

      public void clear()
      Specified by:
      clear in interface Collection<swim.structure.Item>
      Specified by:
      clear in interface List<swim.structure.Item>
      Specified by:
      clear in class swim.structure.Record
    • keyIterator

      public Iterator<swim.structure.Value> keyIterator()
      Specified by:
      keyIterator in interface swim.streamlet.MapOutlet<swim.structure.Value,swim.structure.Value,swim.structure.Record>
      Specified by:
      keyIterator in class swim.dataflow.AbstractRecordOutlet
    • didUpdate

      public void didUpdate(swim.structure.Value key, swim.structure.Value newValue, swim.structure.Value oldValue)
      Specified by:
      didUpdate in interface swim.observable.function.DidUpdateKey<swim.structure.Value,swim.structure.Value>
    • didRemove

      public void didRemove(swim.structure.Value key, swim.structure.Value oldValue)
      Specified by:
      didRemove in interface swim.observable.function.DidRemoveKey<swim.structure.Value,swim.structure.Value>
    • didDrop

      public void didDrop(int lower)
      Specified by:
      didDrop in interface swim.observable.function.DidDrop
    • didTake

      public void didTake(int upper)
      Specified by:
      didTake in interface swim.observable.function.DidTake
    • didClear

      public void didClear()
      Specified by:
      didClear in interface swim.observable.function.DidClear