Class MapBase<K,​V>

  • All Implemented Interfaces:
    io.aether.utils.interfaces.AConsumer<V>, java.util.function.Consumer<V>

    public class MapBase<K,​V>
    extends java.lang.Object
    implements io.aether.utils.interfaces.AConsumer<V>
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  MapBase.ARMultiFuture2<T>  
      • Nested classes/interfaces inherited from interface io.aether.utils.interfaces.AConsumer

        io.aether.utils.interfaces.AConsumer.Weak<T extends java.lang.Object>
    • Field Summary

      • Fields inherited from interface io.aether.utils.interfaces.AConsumer

        EMPTY
    • Constructor Summary

      Constructors 
      Constructor Description
      MapBase​(io.aether.utils.interfaces.AFunction<V,​K> keyGetter)  
      MapBase​(io.aether.utils.interfaces.AFunction<V,​K> keyGetter, io.aether.utils.interfaces.ABiFunction<V,​V,​V> updater)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(V v)  
      void accept2​(V v)  
      Gate<K,​V> addInput()  
      Gate<K,​V> addInputByRequestHard()  
      Gate<K,​V> addInputHard()  
      void addSource​(Gate<K,​V> src)  
      Gate<V,​K> addSourceHard()  
      void addSourceHard​(Gate<K,​V> src)  
      void flush()  
      io.aether.utils.slots.AMFuture<V> get​(K key)  
      io.aether.utils.slots.AMFuture<V> get​(K key, io.aether.utils.interfaces.AFunction<K,​V> orCreate)  
      <K2,​V2>
      MapBase<K2,​V2>
      map​(java.lang.String name, io.aether.utils.interfaces.AFunction<V,​V2> valConverter1, io.aether.utils.interfaces.AFunction<K2,​K> keyConverter2, io.aether.utils.interfaces.AFunction<V2,​K2> keyConverter3)  
      void refresh​(V c)  
      void refreshKey​(K key)  
      void set​(K key, V val)  
      void set​(V val)  
      protected void set0​(K key, V val)  
      void setAll​(java.lang.Iterable<V> val)  
      io.aether.utils.flow.Flow<V> values()  
      MapBase<K,​V> withLog()  
      MapBase<K,​V> withLog​(java.lang.String logName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.aether.utils.interfaces.AConsumer

        weak
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Constructor Detail

      • MapBase

        public MapBase​(io.aether.utils.interfaces.AFunction<V,​K> keyGetter)
      • MapBase

        public MapBase​(io.aether.utils.interfaces.AFunction<V,​K> keyGetter,
                       io.aether.utils.interfaces.ABiFunction<V,​V,​V> updater)
    • Method Detail

      • refreshKey

        public void refreshKey​(K key)
      • refresh

        public void refresh​(V c)
      • addInputHard

        public Gate<K,​V> addInputHard()
      • addInput

        public Gate<K,​V> addInput()
      • addInputByRequestHard

        public Gate<K,​V> addInputByRequestHard()
      • accept2

        public void accept2​(V v)
        Specified by:
        accept2 in interface io.aether.utils.interfaces.AConsumer<K>
      • accept

        public void accept​(V v)
        Specified by:
        accept in interface io.aether.utils.interfaces.AConsumer<K>
        Specified by:
        accept in interface java.util.function.Consumer<K>
      • set

        public void set​(V val)
      • setAll

        public void setAll​(java.lang.Iterable<V> val)
      • set

        public void set​(K key,
                        V val)
      • set0

        protected void set0​(K key,
                            V val)
      • map

        public <K2,​V2> MapBase<K2,​V2> map​(java.lang.String name,
                                                      io.aether.utils.interfaces.AFunction<V,​V2> valConverter1,
                                                      io.aether.utils.interfaces.AFunction<K2,​K> keyConverter2,
                                                      io.aether.utils.interfaces.AFunction<V2,​K2> keyConverter3)
      • get

        public io.aether.utils.slots.AMFuture<V> get​(K key,
                                                     io.aether.utils.interfaces.AFunction<K,​V> orCreate)
      • get

        public io.aether.utils.slots.AMFuture<V> get​(K key)
      • flush

        public void flush()
      • values

        public io.aether.utils.flow.Flow<V> values()
      • addSource

        public void addSource​(Gate<K,​V> src)
      • addSourceHard

        public void addSourceHard​(Gate<K,​V> src)
      • addSourceHard

        public Gate<V,​K> addSourceHard()
      • withLog

        public MapBase<K,​V> withLog​(java.lang.String logName)