Lines Matching defs:features
17 package com.google.common.collect.testing.features;
51 * Given a set of features, add to it all the features directly or indirectly
53 * @param features the set of features to expand
54 * @return the same set of features, expanded with all implied features
56 public static Set<Feature<?>> addImpliedFeatures(Set<Feature<?>> features) {
57 // The base case of the recursion is an empty set of features, which will
58 // occur when the previous set contained only simple features.
59 if (!features.isEmpty()) {
60 features.addAll(impliedFeatures(features));
62 return features;
66 * Given a set of features, return a new set of all features directly or
68 * @param features the set of features whose implications to find
69 * @return the implied set of features
71 public static Set<Feature<?>> impliedFeatures(Set<Feature<?>> features) {
73 for (Feature<?> feature : features) {
229 "Error extracting features from tester annotation.", e);
239 "implicitly requires one or more features to be both present " +
284 "Annotation requires to be %s features that earlier " +