Package org.verapdf.core
Interface Directory<K,V>
- Type Parameters:
K- the Directory key typeV- 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 Summary
-
Method Details
-
getItem
- 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
- 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.
-