This interface is used as the base interface for Indexes. The index is only
searchable via the query method and is not available for direct manipulation.
The index does not require that all keys used are of the same type. It is reasonable to
use many different key types. The only restriction is that the key must implement
hashCode() and equals() if the searches are to work properly (as you would expect for HashMap).
Additionally, some caches have restrictions on key types:
OSCache requires all keys to be String
EHcache requires the key to be Serializable.
In general usage it is highly recommended (but not required) that you use keys that also implement
Comparable.
author: Steve Woodcock
version: 1.7
|