Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 62 for cark (0.12 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

        assertEquals(distinct, getMultiset().elementSet().size());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      public void testRemove_occurrences_unsupported_absent() {
        // notice: we don't care whether it succeeds, or fails with UOE
        try {
          assertEquals(
              "multiset.remove(absent, 2) didn't return 0 or throw an exception",
              0,
              getMultiset().remove(e3(), 2));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/Service.java

        FAILED,
      }
    
      /**
       * A listener for the various state changes that a {@link Service} goes through in its lifecycle.
       *
       * <p>All methods are no-ops by default, implementors should override the ones they care about.
       *
       * @author Luke Sandberg
       * @since 15.0 (present as an interface in 13.0)
       */
      abstract class Listener {
        /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 10.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

                                "b", (Collection<String>) ImmutableSortedSet.of("bob", "bagel")),
                            Helpers.mapEntry(
                                "c", (Collection<String>) ImmutableSortedSet.of("carl", "carol")),
                            Helpers.mapEntry(
                                "d", (Collection<String>) ImmutableSortedSet.of("david", "dead")),
                            Helpers.mapEntry(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

            helper = new SynchronizedHelper();
          }
        }
        ATOMIC_HELPER = helper;
    
        // Prevent rare disastrous classloading in first call to LockSupport.park.
        // See: https://bugs.openjdk.java.net/browse/JDK-8074773
        @SuppressWarnings("unused")
        Class<?> ensureLoaded = LockSupport.class;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        this.allowsNullKeys = allowsNullKeys;
        this.allowsNullValues = allowsNullValues;
        this.supportsIteratorRemove = supportsIteratorRemove;
      }
    
      /**
       * Used by tests that require a map, but don't care whether it's populated or not.
       *
       * @return a new map instance.
       */
      protected Map<K, V> makeEitherMap() {
        try {
          return makePopulatedMap();
        } catch (UnsupportedOperationException e) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (2)
  6. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        try {
          builder.buildOrThrow();
          fail("Expected exception from duplicate keys");
        } catch (IllegalArgumentException expected) {
          // We don't really care which values the exception message contains, but they should be
          // different from each other. If buildKeepingLast() collapsed duplicates, that might end up
          // not being true.
    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)
  7. android/guava/src/com/google/common/io/ByteStreams.java

        public int available() throws IOException {
          return (int) Math.min(in.available(), left);
        }
    
        // it's okay to mark even if mark isn't supported, as reset won't work
        @Override
        public synchronized void mark(int readLimit) {
          in.mark(readLimit);
          mark = left;
        }
    
        @Override
        public int read() throws IOException {
          if (left == 0) {
            return -1;
          }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

         * the combiner is almost certain to hold its own reference to the futures, and a real app would
         * hold a reference to the executor and thus to the combiner. What we really care about is that
         * the futures are released once the combiner is done running. But we happen to provide this
         * earlier cleanup at the moment, so we're testing it.
         */
        GcFinalization.awaitClear(future1Ref);
    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. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

             * protect ourselves from this, we park ourselves and tell our interrupter that we did so.
             */
            if (state == PARKED || compareAndSet(state, PARKED)) {
              // Interrupting Cow Says:
              //  ______
              // < Park >
              //  ------
              //        \   ^__^
              //         \  (oo)\_______
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Sep 29 21:34:48 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        assertEquals(big[1], small[3]);
      }
    
      public void testLimit_mark() throws Exception {
        byte[] big = newPreFilledByteArray(5);
        InputStream bin = new ByteArrayInputStream(big);
        InputStream lin = ByteStreams.limit(bin, 2);
    
        int read = lin.read();
        assertEquals(big[0], read);
        lin.mark(2);
    
        read = lin.read();
        assertEquals(big[1], read);
        read = lin.read();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
Back to top