Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 206 for visits (0.34 sec)

  1. android/guava/src/com/google/common/reflect/TypeVisitor.java

    abstract class TypeVisitor {
    
      private final Set<Type> visited = Sets.newHashSet();
    
      /**
       * Visits the given types. Null types are ignored. This allows subclasses to call {@code
       * visit(parameterizedType.getOwnerType())} safely without having to check nulls.
       */
      public final void visit(@Nullable Type... types) {
        for (Type type : types) {
          if (type == null || !visited.add(type)) {
            // null owner type, or already visited;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Apr 16 21:10:04 GMT 2021
    - 3.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/Traverser.java

                return ancestorStack.pop();
              }
              return endOfData();
            }
          };
        }
    
        /**
         * Visits the next node from the top iterator of {@code horizon} and returns the visited node.
         * Null is returned to indicate reaching the end of the top iterator.
         *
         * <p>For example, if horizon is {@code [[a, b], [c, d], [e]]}, {@code visitNext()} will return
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 30 20:12:45 GMT 2023
    - 19.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/MathBenchmarking.java

       */
      static BigInteger randomNonNegativeBigInteger(int numBits) {
        int digits = RANDOM_SOURCE.nextInt(numBits);
        if (digits == 0) {
          return new BigInteger(1, RANDOM_SOURCE);
        } else {
          return new BigInteger(digits, RANDOM_SOURCE).setBit(digits);
        }
      }
    
      /**
       * Equivalent to calling randomPositiveBigInteger(numBits) and then flipping the sign with 50%
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        int nTasks = 1000;
        int nSeededEntries = 100;
        Set<String> expectedKeys = Sets.newHashSetWithExpectedSize(nTasks + nSeededEntries);
        // seed the map, so its segments have a count>0; otherwise, clear() won't visit the in-progress
        // entries
        for (int i = 0; i < nSeededEntries; i++) {
          String s = "b" + i;
          cache.getUnchecked(s);
          expectedKeys.add(s);
        }
        computationShouldWait.set(true);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 23.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/Longs.java

       *
       * <p>Unlike {@link Long#parseLong(String)}, this method returns {@code null} instead of throwing
       * an exception if parsing fails. Additionally, this method only accepts ASCII digits, and returns
       * {@code null} if non-ASCII digits are present in the string.
       *
       * <p>Note that strings prefixed with ASCII {@code '+'} are rejected, even under JDK 7, despite
       * the change to {@link Long#parseLong(String)} for that version.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 28.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

             *
             * Ideally we'd have a real eviction policy, but until we see a problem in practice, I hope
             * that this will suffice. I have not even benchmarked with different size limits.
             */
            if (validClasses.size() > 1000) {
              validClasses.clear();
            }
    
            validClasses.add(new WeakReference<Class<? extends Exception>>(exceptionClass));
          }
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/Graphs.java

          return true;
        }
        return hasCycle(network.asGraph());
      }
    
      /**
       * Performs a traversal of the nodes reachable from {@code node}. If we ever reach a node we've
       * already visited (following only outgoing edges and without reusing edges), we know there's a
       * cycle in the graph.
       */
      private static <N> boolean subgraphHasCycle(
          Graph<N> graph,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/reflect/TypeResolver.java

            map(new TypeVariableKey(vars[i]), typeArgs[i]);
          }
          visit(rawClass);
          visit(parameterizedType.getOwnerType());
        }
    
        @Override
        void visitTypeVariable(TypeVariable<?> t) {
          visit(t.getBounds());
        }
    
        @Override
        void visitWildcardType(WildcardType t) {
          visit(t.getUpperBounds());
        }
    
        private void map(TypeVariableKey var, Type arg) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 24.2K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java

        try {
          multimap().putAll(k3(), Lists.newArrayList(v3(), null));
          fail();
        } catch (NullPointerException expected) {
        }
    
        Collection<V> values = multimap().get(k3());
        if (values.size() == 0) {
          expectUnchanged();
          // Be extra thorough in case internal state was corrupted by the expected null.
          assertEquals(Lists.newArrayList(), Lists.newArrayList(values));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 7.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ListsImplTest.java

        assertThat(Lists.hashCodeImpl(base)).isEqualTo(Lists.hashCodeImpl(copy));
    
        assertThat(Lists.hashCodeImpl(base)).isNotEqualTo(Lists.hashCodeImpl(outOfOrder));
        assertThat(Lists.hashCodeImpl(base)).isNotEqualTo(Lists.hashCodeImpl(diffValue));
        assertThat(Lists.hashCodeImpl(base)).isNotEqualTo(Lists.hashCodeImpl(diffLength));
        assertThat(Lists.hashCodeImpl(base)).isNotEqualTo(Lists.hashCodeImpl(empty));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 10.6K bytes
    - Viewed (0)
Back to top