public interface HGSearchable<KeyType,ValueType>
The HGSearchable
interface specifies that an object can be searched by a key.
Things HGSearchable
in HyperGraph are indexes, certain types and the like.
Modifier and Type | Method and Description |
---|---|
HGSearchResult<ValueType> |
find(KeyType key)
Returns a
HGSearchResult over all values matching a key in the
searched entity. |
HGSearchResult<ValueType> find(KeyType key)
Returns a HGSearchResult
over all values matching a key in the
searched entity.
If there are no matches, the method should return HGSearchResult.EMPTY
. The
method will never return a null
. A HGException
may
be thrown in exceptional situations.
Copyright © 2015. All rights reserved.