Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 231 for AssertionError (0.14 sec)

  1. android/guava/src/com/google/common/collect/Multisets.java

        }
    
        @Override
        Set<E> createElementSet() {
          return Sets.filter(unfiltered.elementSet(), predicate);
        }
    
        @Override
        Iterator<E> elementIterator() {
          throw new AssertionError("should never be called");
        }
    
        @Override
        Set<Entry<E>> createEntrySet() {
          return Sets.filter(
              unfiltered.entrySet(),
              new Predicate<Entry<E>>() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Multisets.java

        }
    
        @Override
        Set<E> createElementSet() {
          return Sets.filter(unfiltered.elementSet(), predicate);
        }
    
        @Override
        Iterator<E> elementIterator() {
          throw new AssertionError("should never be called");
        }
    
        @Override
        Set<Entry<E>> createEntrySet() {
          return Sets.filter(
              unfiltered.entrySet(),
              new Predicate<Entry<E>>() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java

          this.hashFn = hashFn;
        }
    
        public MessageDigest getMessageDigest() {
          try {
            return MessageDigest.getInstance(algorithmName);
          } catch (NoSuchAlgorithmException e) {
            throw new AssertionError(e);
          }
        }
    
        public HashFunction getHashFunction() {
          return hashFn;
        }
      }
    
      // Use a constant seed for all of the benchmarks to ensure apples to apples comparisons.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.5K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java

          this.hashFn = hashFn;
        }
    
        public MessageDigest getMessageDigest() {
          try {
            return MessageDigest.getInstance(algorithmName);
          } catch (NoSuchAlgorithmException e) {
            throw new AssertionError(e);
          }
        }
    
        public HashFunction getHashFunction() {
          return hashFn;
        }
      }
    
      // Use a constant seed for all of the benchmarks to ensure apples to apples comparisons.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java

                              threadSum -= oldValue;
                            }
                            break;
                          default:
                            throw new AssertionError();
                        }
                      }
                      return threadSum;
                    }
                  }));
        }
        threadPool.shutdown();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/MessageDigestHashFunction.java

      }
    
      private static MessageDigest getMessageDigest(String algorithmName) {
        try {
          return MessageDigest.getInstance(algorithmName);
        } catch (NoSuchAlgorithmException e) {
          throw new AssertionError(e);
        }
      }
    
      @Override
      public Hasher newHasher() {
        if (supportsClone) {
          try {
            return new MessageDigestHasher((MessageDigest) prototype.clone(), bytes);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 25 20:32:46 UTC 2022
    - 5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/UndirectedGraphConnections.java

          case STABLE:
            return new UndirectedGraphConnections<>(
                new LinkedHashMap<N, V>(INNER_CAPACITY, INNER_LOAD_FACTOR));
          default:
            throw new AssertionError(incidentEdgeOrder.type());
        }
      }
    
      static <N, V> UndirectedGraphConnections<N, V> ofImmutable(Map<N, V> adjacentNodeValues) {
        return new UndirectedGraphConnections<>(ImmutableMap.copyOf(adjacentNodeValues));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/InterruptionUtil.java

                  @Override
                  public void run() {
                    try {
                      unit.sleep(time);
                    } catch (InterruptedException wontHappen) {
                      throw new AssertionError(wontHappen);
                    }
                    interruptee.interrupt();
                  }
                })
            .start();
      }
    
      static void repeatedlyInterruptTestThread(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.4K bytes
    - Viewed (0)
  9. guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java

          Method method = null;
          try {
            method = annotationClass.getMethod(propertyName);
          } catch (NoSuchMethodException e) {
            throw new AssertionError("Annotation is missing required method", e);
          }
          final Class<?> returnType = method.getReturnType();
          assertTrue(
              rootLocaleFormat("%s.%s() must return an array.", annotationClass, propertyName),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:09:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

        } catch (InvocationTargetException e) {
          if (exception != e.getCause()) {
            throw new RuntimeException(e);
          }
        } catch (IllegalAccessException e) {
          throw new AssertionError(e);
        }
      }
    
      private static <T> void testEquals(
          Class<T> interfaceType, Function<? super T, ? extends T> wrapperFunction) {
        FreshValueGenerator generator = new FreshValueGenerator();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top