Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 197 for feature (0.26 sec)

  1. android/guava-testlib/test/com/google/common/collect/testing/features/FeatureUtilTest.java

        assertNotSame(features, FeatureUtil.impliedFeatures(features));
      }
    
      public void testImpliedFeatures_returnsImpliedFeatures() throws Exception {
        Set<Feature<?>> features;
    
        features = Sets.<Feature<?>>newHashSet(ExampleDerivedFeature.DERIVED_FEATURE_1);
        assertTrue(FeatureUtil.impliedFeatures(features).isEmpty());
    
        features = Sets.<Feature<?>>newHashSet(ExampleDerivedFeature.DERIVED_FEATURE_2);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 10.4K bytes
    - Viewed (2)
  2. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

        abstract Map<String, String> wrap(HashMap<String, String> map);
      }
    
      private static TestSuite wrappedHashMapTests(
          WrappedHashMapGenerator generator, String name, Feature<?>... features) {
        List<Feature<?>> featuresList = Lists.newArrayList(features);
        Collections.addAll(
            featuresList,
            MapFeature.GENERAL_PURPOSE,
            CollectionFeature.SUPPORTS_ITERATOR_REMOVE,
            CollectionSize.ANY);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

       * @return the implied set of features
       */
      public static Set<Feature<?>> impliedFeatures(Set<Feature<?>> features) {
        Set<Feature<?>> impliedSet = new LinkedHashSet<>();
        Queue<Feature<?>> queue = new ArrayDeque<>(features);
        while (!queue.isEmpty()) {
          Feature<?> feature = queue.remove();
          for (Feature<?> implied : feature.getImpliedFeatures()) {
            if (!features.contains(implied) && impliedSet.add(implied)) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 21 15:08:35 GMT 2022
    - 12.1K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

        abstract Map<String, String> wrap(HashMap<String, String> map);
      }
    
      private static TestSuite wrappedHashMapTests(
          WrappedHashMapGenerator generator, String name, Feature<?>... features) {
        List<Feature<?>> featuresList = Lists.newArrayList(features);
        Collections.addAll(
            featuresList,
            MapFeature.GENERAL_PURPOSE,
            CollectionFeature.SUPPORTS_ITERATOR_REMOVE,
            CollectionSize.ANY);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.9K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

       * @return the implied set of features
       */
      public static Set<Feature<?>> impliedFeatures(Set<Feature<?>> features) {
        Set<Feature<?>> impliedSet = new LinkedHashSet<>();
        Queue<Feature<?>> queue = new ArrayDeque<>(features);
        while (!queue.isEmpty()) {
          Feature<?> feature = queue.remove();
          for (Feature<?> implied : feature.getImpliedFeatures()) {
            if (!features.contains(implied) && impliedSet.add(implied)) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 21 15:08:35 GMT 2022
    - 12.1K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

      @CanIgnoreReturnValue
      public B withFeatures(Iterable<? extends Feature<?>> features) {
        for (Feature<?> feature : features) {
          this.features.add(feature);
        }
        return self();
      }
    
      public Set<Feature<?>> getFeatures() {
        return Collections.unmodifiableSet(features);
      }
    
      // Name
    
      private @Nullable String name;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/TableCollectionTest.java

      private static final Feature<?>[] COLLECTION_FEATURES = {
        CollectionSize.ANY, CollectionFeature.ALLOWS_NULL_QUERIES
      };
    
      private static final Feature<?>[] COLLECTION_FEATURES_ORDER = {
        CollectionSize.ANY, CollectionFeature.KNOWN_ORDER, CollectionFeature.ALLOWS_NULL_QUERIES
      };
    
      private static final Feature<?>[] COLLECTION_FEATURES_REMOVE = {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

      @CanIgnoreReturnValue
      public B withFeatures(Iterable<? extends Feature<?>> features) {
        for (Feature<?> feature : features) {
          this.features.add(feature);
        }
        return self();
      }
    
      public Set<Feature<?>> getFeatures() {
        return Collections.unmodifiableSet(features);
      }
    
      // Name
    
      private @Nullable String name;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/MapTestSuiteBuilder.java

    import com.google.common.collect.testing.DerivedCollectionGenerators.MapValueCollectionGenerator;
    import com.google.common.collect.testing.features.CollectionFeature;
    import com.google.common.collect.testing.features.CollectionSize;
    import com.google.common.collect.testing.features.Feature;
    import com.google.common.collect.testing.features.MapFeature;
    import com.google.common.collect.testing.testers.MapClearTester;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 12.1K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java

              .put(MapFeature.SUPPORTS_PUT, CollectionFeature.SUPPORTS_ADD)
              .build();
    
      Set<Feature<?>> computeMultimapGetFeatures(Set<Feature<?>> multimapFeatures) {
        Set<Feature<?>> derivedFeatures = Helpers.copyToSet(multimapFeatures);
        for (Entry<Feature<?>, Feature<?>> entry : GET_FEATURE_MAP.entries()) {
          if (derivedFeatures.contains(entry.getKey())) {
            derivedFeatures.add(entry.getValue());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 26.8K bytes
    - Viewed (0)
Back to top