Interface Directory<K,​V>

  • Type Parameters:
    K - the Directory key type
    V - the Directory value type
    All Known Subinterfaces:
    Registry<K,​V>
    All Known Implementing Classes:
    MapBackedDirectory, MapBackedRegistry

    public interface Directory<K,​V>
    A read only Directory that supports key and value types.
    Author:
    Carl Wilson
    • Method Detail

      • getItem

        V getItem​(K key)
        Parameters:
        key - the key used to lookup a particular item
        Returns:
        the value instance associated with the key
      • getItems

        Collection<V> getItems()
        Returns:
        the Collection of values contained in the directory
      • getKeys

        Set<K> getKeys()
        Returns:
        the Set of keys contained in the directory
      • size

        int size()
        Returns:
        the number of items held in the directory
      • isEmpty

        boolean isEmpty()
        Returns:
        true if the directory contains no items, false if not.