Search Options

Results per page
Sort
Preferred Languages
Advance

Results 351 - 360 of 453 for Iterable (0.12 sec)

  1. guava/src/com/google/common/io/Files.java

       * @since 11.0
       */
      public static String simplifyPath(String pathname) {
        checkNotNull(pathname);
        if (pathname.length() == 0) {
          return ".";
        }
    
        // split the path apart
        Iterable<String> components = Splitter.on('/').omitEmptyStrings().split(pathname);
        List<String> path = new ArrayList<>();
    
        // resolve ., .., and //
        for (String component : components) {
          switch (component) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

              @Override
              public Object load(Object key) throws Exception {
                return new Object();
              }
    
              @Override
              public Map<Object, Object> loadAll(Iterable<?> keys) throws Exception {
                Map<Object, Object> result = Maps.newHashMap();
                for (Object key : keys) {
                  Object value = new Object();
                  result.put(key, value);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Range.java

      }
    
      /**
       * Returns {@code true} if every element in {@code values} is {@linkplain #contains contained} in
       * this range.
       */
      public boolean containsAll(Iterable<? extends C> values) {
        if (Iterables.isEmpty(values)) {
          return true;
        }
    
        // this optimizes testing equality of two range-backed sets
        if (values instanceof SortedSet) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

        longManyValuesAccumulatorByAddAllVarargs = new StatsAccumulator();
        longManyValuesAccumulatorByAddAllVarargs.addAll(Longs.toArray(LONG_MANY_VALUES));
      }
    
      private static StatsAccumulator statsAccumulatorOf(Iterable<? extends Number> values) {
        StatsAccumulator accumulator = new StatsAccumulator();
        accumulator.addAll(values);
        return accumulator;
      }
    
      public void testCount() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/NullPointerTester.java

        }
    
        final Iterable<Method> getStaticMethods(Class<?> cls) {
          ImmutableList.Builder<Method> builder = ImmutableList.builder();
          for (Method method : getVisibleMethods(cls)) {
            if (Invokable.from(method).isStatic()) {
              builder.add(method);
            }
          }
          return builder.build();
        }
    
        final Iterable<Method> getInstanceMethods(Class<?> cls) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Multiset.java

       * {@link Collections#frequency} (which would presumably perform more poorly).
       *
       * <p><b>Note:</b> the utility method {@link Iterables#frequency} generalizes this operation; it
       * correctly delegates to this method when dealing with a multiset, but it can also accept any
       * other iterable type.
       *
       * @param element the element to count occurrences of
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 21K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/DirectedGraphConnections.java

            orderedNodeConnections,
            /* predecessorCount = */ 0,
            /* successorCount = */ 0);
      }
    
      static <N, V> DirectedGraphConnections<N, V> ofImmutable(
          N thisNode, Iterable<EndpointPair<N>> incidentEdges, Function<N, V> successorNodeToValueFn) {
        checkNotNull(thisNode);
        checkNotNull(successorNodeToValueFn);
    
        Map<N, Object> adjacentNodeValues = new HashMap<>();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 18K bytes
    - Viewed (0)
  8. android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

      }
    
      public void testCollection() {
        assertFreshInstance(new TypeToken<Collection<String>>() {});
      }
    
      public void testIterable() {
        assertFreshInstance(new TypeToken<Iterable<String>>() {});
      }
    
      public void testMap() {
        assertFreshInstance(new TypeToken<Map<String, ?>>() {});
      }
    
      public void testHashMap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 17.2K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

       */
      @CanIgnoreReturnValue
      public B withFeatures(Feature<?>... features) {
        return withFeatures(asList(features));
      }
    
      @CanIgnoreReturnValue
      public B withFeatures(Iterable<? extends Feature<?>> features) {
        for (Feature<?> feature : features) {
          this.features.add(feature);
        }
        return self();
      }
    
      public Set<Feature<?>> getFeatures() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ObjectArrays.java

        }
        @Nullable Object[] result = new Object[length];
        arraycopy(elements, offset, result, 0, length);
        return result;
      }
    
      @CanIgnoreReturnValue
      private static @Nullable Object[] fillArray(Iterable<?> elements, @Nullable Object[] array) {
        int i = 0;
        for (Object element : elements) {
          array[i++] = element;
        }
        return array;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top