Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 101 for something (0.18 sec)

  1. android/guava/src/com/google/common/io/CharSink.java

     *   <li><b>Convenience methods:</b> These are implementations of common operations that are
     *       typically implemented by opening a writer using one of the methods in the first category,
     *       doing something and finally closing the writer that was opened.
     * </ul>
     *
     * <p>Any {@link ByteSink} may be viewed as a {@code CharSink} with a specific {@linkplain Charset
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/SynchronizedNavigableSetTest.java

    /**
     * Tests for {@link Sets#synchronizedNavigableSet(NavigableSet)}.
     *
     * @author Louis Wasserman
     */
    public class SynchronizedNavigableSetTest extends TestCase {
      private static final Object MUTEX = new Integer(1); // something Serializable
    
      @SuppressWarnings("unchecked")
      protected <E> NavigableSet<E> create() {
        TestSet<E> inner =
            new TestSet<>(new TreeSet<E>((Comparator<E>) Ordering.natural().nullsFirst()), MUTEX);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 7.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java

                  } catch (Throwable t) {
                    // (including CancellationException and sneaky checked exception)
                    // The task is presumably done, run the listeners.
                    // TODO(cpovirk): Do *something* in case of Error (and maybe
                    // non-CancellationException, non-ExecutionException exceptions)?
                  }
                  executionList.execute();
                });
          }
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/SynchronizedMultimapTest.java

      private static final class TestMultimap<K, V> extends ForwardingSetMultimap<K, V>
          implements Serializable {
        final SetMultimap<K, V> delegate = HashMultimap.create();
        public final Object mutex = new Integer(1); // something Serializable
    
        @Override
        protected SetMultimap<K, V> delegate() {
          return delegate;
        }
    
        @Override
        public String toString() {
          assertTrue(Thread.holdsLock(mutex));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

        assertHash(expected, murmur3_32_fixed().newHasher().putBytes(string.getBytes(charset)).hash());
      }
    
      private boolean allBmp(String string) {
        // Ordinarily we'd use something like i += Character.charCount(string.codePointAt(i)) here. But
        // we can get away with i++ because the whole point of this method is to return false if we find
        // a code point that doesn't fit in a char.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 08 13:56:22 GMT 2021
    - 8.6K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

       */
      protected final class MultiExceptionListIterator implements ListIterator<E> {
        // TODO: track seen elements when order isn't guaranteed
        // TODO: verify contents afterward
        // TODO: something shiny and new instead of Stack
        // TODO: test whether null is supported (create a Feature)
        /**
         * The elements to be returned by future calls to {@code next()}, with the first at the top of
         * the stack.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

        assertHash(expected, murmur3_32_fixed().newHasher().putBytes(string.getBytes(charset)).hash());
      }
    
      private boolean allBmp(String string) {
        // Ordinarily we'd use something like i += Character.charCount(string.codePointAt(i)) here. But
        // we can get away with i++ because the whole point of this method is to return false if we find
        // a code point that doesn't fit in a char.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 08 13:56:22 GMT 2021
    - 8.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/ListenerCallQueue.java

            try {
              executor.execute(this);
            } catch (Exception e) { // sneaky checked exception
              // reset state in case of an error so that later dispatch calls will actually do something
              synchronized (this) {
                isThreadScheduled = false;
              }
              // Log it and keep going.
              logger
                  .get()
                  .log(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 8.2K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

       */
      protected final class MultiExceptionListIterator implements ListIterator<E> {
        // TODO: track seen elements when order isn't guaranteed
        // TODO: verify contents afterward
        // TODO: something shiny and new instead of Stack
        // TODO: test whether null is supported (create a Feature)
        /**
         * The elements to be returned by future calls to {@code next()}, with the first at the top of
         * the stack.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

     *         public void healthy() {
     *           // Services have been initialized and are healthy, start accepting requests...
     *         }
     *         public void failure(Service service) {
     *           // Something failed, at this point we could log it, notify a load balancer, or take
     *           // some other action.  For now we will just exit.
     *           System.exit(1);
     *         }
     *       },
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 30.5K bytes
    - Viewed (0)
Back to top