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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VgetItem(K key)Collection<V>getItems()Set<K>getKeys()booleanisEmpty()intsize()
-
-
-
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
-
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.
-
-