Interface TableView<T>

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable

    public interface TableView<T>
    extends java.io.Closeable
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletableFuture<java.lang.Void> closeAsync()
      Close the table view and releases resources allocated.
      boolean containsKey​(java.lang.String key)
      Returns true if this TableView contains a mapping for the specified key.
      java.util.Set<java.util.Map.Entry<java.lang.String,​T>> entrySet()
      Returns a Set view of the mappings contained in this map.
      void forEach​(java.util.function.BiConsumer<java.lang.String,​T> action)
      Performs the given action for each entry in this map until all entries have been processed or the action throws an exception.
      void forEachAndListen​(java.util.function.BiConsumer<java.lang.String,​T> action)
      Performs the give action for each entry in this map until all entries have been processed or the action throws an exception.
      T get​(java.lang.String key)
      Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
      boolean isEmpty()
      Returns true if this TableView contains no key-value mappings.
      java.util.Set<java.lang.String> keySet()
      Returns a Set view of the keys contained in this TableView.
      int size()
      Returns the number of key-value mappings in the TableView.
      java.util.Collection<T> values()
      Returns a Collection view of the values contained in this TableView.
      • Methods inherited from interface java.io.Closeable

        close
    • Method Detail

      • size

        int size()
        Returns the number of key-value mappings in the TableView.
        Returns:
        the number of key-value mappings in this TableView
      • isEmpty

        boolean isEmpty()
        Returns true if this TableView contains no key-value mappings.
        Returns:
        true if this TableView contains no key-value mappings
      • containsKey

        boolean containsKey​(java.lang.String key)
        Returns true if this TableView contains a mapping for the specified key.
        Parameters:
        key - key whose presence in this map is to be tested
        Returns:
        true if this map contains a mapping for the specified key
      • get

        T get​(java.lang.String key)
        Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
        Parameters:
        key - the key whose associated value is to be returned
        Returns:
        the value associated with the key or null if the keys was not found
      • entrySet

        java.util.Set<java.util.Map.Entry<java.lang.String,​T>> entrySet()
        Returns a Set view of the mappings contained in this map.
        Returns:
        a set view of the mappings contained in this map
      • keySet

        java.util.Set<java.lang.String> keySet()
        Returns a Set view of the keys contained in this TableView.
        Returns:
        a set view of the keys contained in this map
      • values

        java.util.Collection<T> values()
        Returns a Collection view of the values contained in this TableView.
        Returns:
        a collection view of the values contained in this TableView
      • forEach

        void forEach​(java.util.function.BiConsumer<java.lang.String,​T> action)
        Performs the given action for each entry in this map until all entries have been processed or the action throws an exception.
        Parameters:
        action - The action to be performed for each entry
      • forEachAndListen

        void forEachAndListen​(java.util.function.BiConsumer<java.lang.String,​T> action)
        Performs the give action for each entry in this map until all entries have been processed or the action throws an exception.
        Parameters:
        action - The action to be performed for each entry
      • closeAsync

        java.util.concurrent.CompletableFuture<java.lang.Void> closeAsync()
        Close the table view and releases resources allocated.
        Returns:
        a future that can used to track when the table view has been closed.