Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for me (0.24 sec)

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

                    .compare("a", "b")
                    .compare(DONT_COMPARE_ME, DONT_COMPARE_ME)
                    .result())
            .isLessThan(0);
      }
    
      public void testShortCircuitGreater() {
        assertThat(
                ComparisonChain.start()
                    .compare("b", "a")
                    .compare(DONT_COMPARE_ME, DONT_COMPARE_ME)
                    .result())
            .isGreaterThan(0);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 27 13:27:08 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/TreeMultiset.java

            if (result[0] == 0) {
              distinctElements++;
            }
            this.totalCount += count;
            return (right.height == initHeight) ? this : rebalance();
          }
    
          // adding count to me!  No rebalance possible.
          result[0] = elemCount;
          long resultCount = (long) elemCount + count;
          checkArgument(resultCount <= Integer.MAX_VALUE);
          this.elemCount += count;
          this.totalCount += count;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/OrderingTest.java

        List<T> list = Arrays.asList(strictlyOrderedElements);
    
        // for use calling Collection.toArray later
        T[] emptyArray = Platform.newArray(strictlyOrderedElements, 0);
    
        // shoot me, but I didn't want to deal with wildcards through the whole test
        @SuppressWarnings("unchecked")
        Scenario<T> starter = new Scenario<>((Ordering<T>) ordering, list, emptyArray);
        verifyScenario(starter, 0);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        List<T> list = Arrays.asList(strictlyOrderedElements);
    
        // for use calling Collection.toArray later
        T[] emptyArray = Platform.newArray(strictlyOrderedElements, 0);
    
        // shoot me, but I didn't want to deal with wildcards through the whole test
        @SuppressWarnings("unchecked")
        Scenario<T> starter = new Scenario<>((Ordering<T>) ordering, list, emptyArray);
        verifyScenario(starter, 0);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/IterablesTest.java

        List<Integer> collection =
            new ArrayList<Integer>(nums) {
              @Override
              public Iterator<Integer> iterator() {
                throw new AssertionFailedError("Don't iterate me!");
              }
            };
        assertEquals(5, Iterables.size(collection));
      }
    
      private static <T extends @Nullable Object> Iterable<T> iterable(T... elements) {
        final List<T> list = asList(elements);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        assertThat(logged.get(0).getThrown()).hasMessageThat().isEqualTo("You can't fire me, I quit.");
      }
    
      private static final class CancelPanickingFuture<V> extends AbstractFuture<V> {
        @Override
        public boolean cancel(boolean mayInterruptIfRunning) {
          setException(new Error("You can't fire me, I quit."));
          return false;
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/Closer.java

       * Registers the given {@code closeable} to be closed when this {@code Closer} is {@linkplain
       * #close closed}.
       *
       * @return the given {@code closeable}
       */
      // close. this word no longer has any meaning to me.
      @CanIgnoreReturnValue
      @ParametricNullness
      public <C extends @Nullable Closeable> C register(@ParametricNullness C closeable) {
        if (closeable != null) {
          stack.addFirst(closeable);
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Mar 06 15:15:46 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        assertThat(logged.get(0).getThrown()).hasMessageThat().isEqualTo("You can't fire me, I quit.");
      }
    
      private static final class CancelPanickingFuture<V> extends AbstractFuture<V> {
        @Override
        public boolean cancel(boolean mayInterruptIfRunning) {
          setException(new Error("You can't fire me, I quit."));
          return false;
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/CharMatcherTest.java

      }
    
      private static final CharMatcher WHATEVER =
          new CharMatcher() {
            @Override
            public boolean matches(char c) {
              throw new AssertionFailedError("You weren't supposed to actually invoke me!");
            }
          };
    
      public void testAnyAndNone_logicalOps() throws Exception {
        // These are testing behavior that's never promised by the API, but since
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

      }
    
      private static final CharMatcher WHATEVER =
          new CharMatcher() {
            @Override
            public boolean matches(char c) {
              throw new AssertionFailedError("You weren't supposed to actually invoke me!");
            }
          };
    
      public void testAnyAndNone_logicalOps() throws Exception {
        // These are testing behavior that's never promised by the API, but since
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 30.1K bytes
    - Viewed (0)
Back to top