Package net.morimekta.providence.storage
Interface MessageSearcher<Q,M extends net.morimekta.providence.PMessage<M>>
-
- Type Parameters:
Q- Search query param, be it single string or struct or union with search parameters.M- PMessage that we search for.
- All Superinterfaces:
Searcher<Q,M>
- All Known Implementing Classes:
PredicateFilterMessageStoreSearcher
public interface MessageSearcher<Q,M extends net.morimekta.providence.PMessage<M>> extends Searcher<Q,M>
Interface for searching a store for a specific search S.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default <B extends net.morimekta.providence.PMessageBuilder<M>>
java.util.List<B>searchBuilders(Q query)Get a list of builders for the query input.
-
-
-
Method Detail
-
searchBuilders
@Nonnull default <B extends net.morimekta.providence.PMessageBuilder<M>> java.util.List<B> searchBuilders(@Nonnull Q query)
Get a list of builders for the query input. No modifications to the returned builders will be reflected onto the store.- Type Parameters:
B- The builder type.- Parameters:
query- The key to look up.- Returns:
- List of builders that matches query Q.
-
-