Interface MapOutlet<K,​V,​O>

    • Method Detail

      • containsKey

        boolean containsKey​(K key)
        Returns true if the current state of this MapOutlet contains the given key; otherwise returns false.
      • get

        V get​(K key)
        Returns the value assocaited with the given key in the current state of this MapOutlet, if defined; otherwise returns null.
      • keyIterator

        Iterator<K> keyIterator()
        Returns an Iterator over the keys in the current state of this MapOutlet.
      • outlet

        Outlet<V> outlet​(K key)
        Returns an Outlet that updates when the specified key updates.
      • invalidateInputKey

        void invalidateInputKey​(K key,
                                KeyEffect effect)
        Marks this MapOutlet as needing an effect applied to a given key. Invalidating an individual key invalidates the entire state of the Outlet. But only the invalidated keys need to be updated in order to reconcile the overall state of the Outlet.
      • reconcileInputKey

        void reconcileInputKey​(K key,
                               int version)
        Reconciles the state of an individual key in this MapOutlet, if the version of this MapOutlet's state differs from the target version. To reconcile the state of a key, the MapOutlet first invokes Streamlet.reconcile(int) on its attached streamlets. Then, for each dependent output, it invokes MapInlet.reconcileOutputKey(Object, int), if the dependent output is a MapInlet, or it invokes Inlet.reconcileOutput(int), if the dependent output is not a MapInlet.