Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 90 for Potter (0.25 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        Builder<String, Integer> builder =
            new Builder<String, Integer>()
                .put("one", 1)
                .put("one", 1); // throwing on this line would be even better
    
        try {
          builder.build();
          fail();
        } catch (IllegalArgumentException expected) {
          assertThat(expected.getMessage()).contains("one");
        }
      }
    
      public void testOf() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/DoubleMathTest.java

          } catch (IllegalArgumentException expected) {
            // success
          }
        }
      }
    
      /*
       * We've split testFuzzyCompare() into multiple tests so that our internal Android test runner has
       * a better chance of completing each within its per-test-method timeout.
       */
    
      public void testFuzzyCompare0() {
        runTestFuzzyCompare(0);
      }
    
      public void testFuzzyCompare1() {
        runTestFuzzyCompare(1);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableSet.java

        final SetBuilderImpl<E> combine(SetBuilderImpl<E> other) {
          SetBuilderImpl<E> result = this;
          for (int i = 0; i < other.distinct; i++) {
            /*
             * requireNonNull is safe because we ensure that the first `distinct` elements have been
             * populated.
             */
            result = result.add(requireNonNull(other.dedupedElements[i]));
          }
          return result;
        }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

      public void testPuttingTheSameKeyTwiceThrowsOnBuild() {
        Builder<String, Integer> builder =
            new Builder<String, Integer>()
                .put("one", 1)
                .put("one", 1); // throwing on this line might be better but it's too late to change
    
        try {
          builder.buildOrThrow();
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testBuildKeepingLast_allowsOverwrite() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 27 13:27:08 GMT 2024
    - 41.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableMap.java

        }
    
        @CanIgnoreReturnValue
        Builder<K, V> combine(Builder<K, V> other) {
          checkNotNull(other);
          ensureCapacity(this.size + other.size);
          System.arraycopy(
              other.alternatingKeysAndValues,
              0,
              this.alternatingKeysAndValues,
              this.size * 2,
              other.size * 2);
          this.size += other.size;
          return this;
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Lists.java

      /** An implementation of {@link List#equals(Object)}. */
      static boolean equalsImpl(List<?> thisList, @CheckForNull Object other) {
        if (other == checkNotNull(thisList)) {
          return true;
        }
        if (!(other instanceof List)) {
          return false;
        }
        List<?> otherList = (List<?>) other;
        int size = thisList.size();
        if (size != otherList.size()) {
          return false;
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 16:48:36 GMT 2024
    - 41.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/eventbus/EventBus.java

     * of EventBus may be better written using <a
     * href="https://kotlinlang.org/docs/coroutines-guide.html">Kotlin coroutines</a>, including <a
     * href="https://kotlinlang.org/docs/flow.html">Flow</a> and <a
     * href="https://kotlinlang.org/docs/channels.html">Channels</a>. Yet other usages are better served
     * by individual libraries that provide specialized support for particular use cases.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Aug 25 16:37:57 GMT 2021
    - 12.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/BloomFilterStrategies.java

         */
        void putAll(LockFreeBitArray other) {
          checkArgument(
              data.length() == other.data.length(),
              "BitArrays must be of equal length (%s != %s)",
              data.length(),
              other.data.length());
          for (int i = 0; i < data.length(); i++) {
            putData(i, other.data.get(i));
          }
        }
    
        /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 10.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/GeneralRange.java

          upEnd = other.getUpperEndpoint();
          upType = other.getUpperBoundType();
        } else if (other.hasUpperBound()) {
          int cmp = comparator.compare(getUpperEndpoint(), other.getUpperEndpoint());
          if (cmp > 0 || (cmp == 0 && other.getUpperBoundType() == OPEN)) {
            upEnd = other.getUpperEndpoint();
            upType = other.getUpperBoundType();
          }
        }
    
        if (hasLowBound && hasUpBound) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

        for (@SuppressWarnings("rawtypes") // class literals
        Class<? extends AbstractTester> testerClass : testers) {
          @SuppressWarnings("unchecked") // getting rid of the raw type, for better or for worse
          TestSuite testerSuite =
              makeSuiteForTesterClass((Class<? extends AbstractTester<?>>) testerClass);
          if (testerSuite.countTestCases() > 0) {
            suite.addTest(testerSuite);
          }
    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)
Back to top