/** * Returns all apis who's contexts are assignable from the parameter * * @param type * the type of the context to search for * * @return the apis with contexts assignable from given type */ public static Iterable<ApiMetadata> contextAssignableFrom(TypeToken<?> type) { return filter(all(), ApiPredicates.contextAssignableFrom(type)); }
/** * {@inheritDoc} */ @Override public boolean apply(ProviderMetadata providerMetadata) { return ApiPredicates.contextAssignableFrom(type).apply(providerMetadata.getApiMetadata()); }
/** * {@inheritDoc} */ @Override public boolean apply(ProviderMetadata providerMetadata) { return ApiPredicates.contextAssignableFrom(type).apply(providerMetadata.getApiMetadata()); }
/** * {@inheritDoc} */ @Override public boolean apply(ProviderMetadata providerMetadata) { return ApiPredicates.contextAssignableFrom(type).apply(providerMetadata.getApiMetadata()); }
/** * {@inheritDoc} */ @Override public boolean apply(ProviderMetadata providerMetadata) { return ApiPredicates.contextAssignableFrom(type).apply(providerMetadata.getApiMetadata()); }
/** * Returns all apis who's contexts are assignable from the parameter * * @param type * the type of the context to search for * * @return the apis with contexts assignable from given type */ public static Iterable<ApiMetadata> contextAssignableFrom(TypeToken<?> type) { return filter(all(), ApiPredicates.contextAssignableFrom(type)); }
/** * {@inheritDoc} */ @Override public boolean apply(ProviderMetadata providerMetadata) { return ApiPredicates.contextAssignableFrom(type).apply(providerMetadata.getApiMetadata()); }
/** * Returns all apis who's contexts are assignable from the parameter * * @param type * the type of the context to search for * * @return the apis with contexts assignable from given type */ public static Iterable<ApiMetadata> contextAssignableFrom(TypeToken<?> type) { return filter(all(), ApiPredicates.contextAssignableFrom(type)); }
/** * Returns all apis who's contexts are assignable from the parameter * * @param type * the type of the context to search for * * @return the apis with contexts assignable from given type */ public static Iterable<ApiMetadata> contextAssignableFrom(TypeToken<?> type) { return filter(all(), ApiPredicates.contextAssignableFrom(type)); }
/** * Returns all apis who's contexts are assignable from the parameter * * @param type * the type of the context to search for * * @return the apis with contexts assignable from given type */ public static Iterable<ApiMetadata> contextAssignableFrom(TypeToken<?> type) { return filter(all(), ApiPredicates.contextAssignableFrom(type)); }
/** * {@inheritDoc} */ @Override public boolean apply(ProviderMetadata providerMetadata) { return ApiPredicates.contextAssignableFrom(type).apply(providerMetadata.getApiMetadata()); }
/** * Returns all apis who's contexts are assignable from the parameter * * @param type * the type of the context to search for * * @return the apis with contexts assignable from given type */ public static Iterable<ApiMetadata> contextAssignableFrom(TypeToken<?> type) { return filter(all(), ApiPredicates.contextAssignableFrom(type)); }