Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 70 for caption (0.22 sec)

  1. guava-tests/test/com/google/common/io/TestOutputStream.java

      }
    
      @Override
      public void close() throws IOException {
        closed = true;
        super.close();
        throwIf(CLOSE_THROWS);
      }
    
      private void throwIf(TestOption option) throws IOException {
        throwIf(options.contains(option));
      }
    
      private static void throwIf(boolean condition) throws IOException {
        if (condition) {
          throw new IOException();
        }
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/CharSourceTest.java

      }
    
      public void testClosesOnErrors_copyingToCharSinkThatThrows() {
        for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) {
          TestCharSource okSource = new TestCharSource(STRING);
          assertThrows(IOException.class, () -> okSource.copyTo(new TestCharSink(option)));
          // ensure reader was closed IF it was opened (depends on implementation whether or not it's
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

            backingEntries.remove();
            toRemove = null;
          }
        };
      }
    
      @Override
      public void forEachEntry(ObjIntConsumer<? super E> action) {
        checkNotNull(action);
        backingMap.forEach((element, count) -> action.accept(element, count.get()));
      }
    
      @Override
      public void clear() {
        for (Count frequency : backingMap.values()) {
          frequency.set(0);
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

        assertFalse(out.closed());
      }
    
      public void testClosesOnErrors_copyingToByteSinkThatThrows() {
        for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) {
          TestByteSource okSource = new TestByteSource(bytes);
          assertThrows(IOException.class, () -> okSource.copyTo(new TestByteSink(option)));
          // ensure stream was closed IF it was opened (depends on implementation whether or not it's
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/collect/testing/OpenJdk6MapTests.java

         * didn't see that discussed in the review, which included many other
         * changes: http://goo.gl/okTTdr
         *
         * TODO(cpovirk): decide what the best long-term action here is: force users
         * to suppress (as we do now), stop testing entrySet().add() at all, make
         * entrySet().add() tests tolerant of either behavior, introduce a map
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.8K bytes
    - Viewed (0)
  6. guava-testlib/test/com/google/common/collect/testing/OpenJdk6MapTests.java

         * didn't see that discussed in the review, which included many other
         * changes: http://goo.gl/okTTdr
         *
         * TODO(cpovirk): decide what the best long-term action here is: force users
         * to suppress (as we do now), stop testing entrySet().add() at all, make
         * entrySet().add() tests tolerant of either behavior, introduce a map
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableMultimap.java

            size());
      }
    
      @Override
      public void forEach(BiConsumer<? super K, ? super V> action) {
        checkNotNull(action);
        asMap()
            .forEach(
                (key, valueCollection) -> valueCollection.forEach(value -> action.accept(key, value)));
      }
    
      /**
       * Returns an immutable multiset containing all the keys in this multimap, in the same order and
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 25.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableSortedSet.java

            size(), SPLITERATOR_CHARACTERISTICS | Spliterator.SIZED) {
          final UnmodifiableIterator<E> iterator = iterator();
    
          @Override
          public boolean tryAdvance(Consumer<? super E> action) {
            if (iterator.hasNext()) {
              action.accept(iterator.next());
              return true;
            } else {
              return false;
            }
          }
    
          @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 38.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/net/InetAddresses.java

     *
     * <p>"IPv4 mapped" addresses were originally a representation of IPv4 addresses for use on an IPv6
     * socket that could receive both IPv4 and IPv6 connections (by disabling the {@code IPV6_V6ONLY}
     * socket option on an IPv6 socket). Yes, it's confusing. Nevertheless, these "mapped" addresses
     * were never supposed to be seen on the wire. That assumption was dropped, some say mistakenly, in
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  10. android/guava/src/com/google/common/base/CharMatcher.java

        // Plug the following UnicodeSet pattern into
        // https://unicode.org/cldr/utility/list-unicodeset.jsp
        // [[[:Zs:][:Zl:][:Zp:][:Cc:][:Cf:][:Cs:][:Co:]]&[\u0000-\uFFFF]]
        // with the "Abbreviate" option, and get the ranges from there.
        private static final String RANGE_STARTS =
            "\u0000\u007f\u00ad\u0600\u061c\u06dd\u070f\u0890\u08e2\u1680\u180e\u2000\u2028\u205f\u2066"
                + "\u3000\ud800\ufeff\ufff9";
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
Back to top