Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Weaver (5.17 sec)

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

        CharSequenceReader reader = new CharSequenceReader(string);
        assertTrue(reader.markSupported());
    
        assertEquals(string, readFully(reader));
        assertFullyRead(reader);
    
        // reset and read again
        reader.reset();
        assertEquals(string, readFully(reader));
        assertFullyRead(reader);
    
        // reset, skip, mark, then read the rest
        reader.reset();
        assertEquals(5, reader.skip(5));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/Closeables.java

       * flush all bytes to the underlying resource.
       *
       * @param reader the reader to be closed, or {@code null} in which case this method does nothing
       * @since 17.0
       */
      public static void closeQuietly(@CheckForNull Reader reader) {
        try {
          close(reader, true);
        } catch (IOException impossible) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/SmallCharMatcher.java

      /*
       * This method was rewritten in Java from an intermediate step of the Murmur hash function in
       * http://code.google.com/p/smhasher/source/browse/trunk/MurmurHash3.cpp, which contained the
       * following header:
       *
       * MurmurHash3 was written by Austin Appleby, and is placed in the public domain. The author
       * hereby disclaims copyright to this source code.
       */
      static int smear(int hashCode) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

        CharSequenceReader reader = new CharSequenceReader(string);
        assertTrue(reader.markSupported());
    
        assertEquals(string, readFully(reader));
        assertFullyRead(reader);
    
        // reset and read again
        reader.reset();
        assertEquals(string, readFully(reader));
        assertFullyRead(reader);
    
        // reset, skip, mark, then read the rest
        reader.reset();
        assertEquals(5, reader.skip(5));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/net/HttpHeadersTest.java

     *
     * @author Kurt Alfred Kluever
     */
    public class HttpHeadersTest extends TestCase {
    
      public void testConstantNameMatchesString() throws Exception {
        // Special case some of the weird HTTP Header names...
        ImmutableBiMap<String, String> specialCases =
            ImmutableBiMap.<String, String>builder()
                .put("CDN_LOOP", "CDN-Loop")
                .put("ETAG", "ETag")
                .put("SOURCE_MAP", "SourceMap")
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 22 21:08:08 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Platform.java

      }
    
      /**
       * Configures the given map maker to use weak keys, if possible; does nothing otherwise (i.e., in
       * GWT). This is sometimes acceptable, when only server-side code could generate enough volume
       * that reclamation becomes important.
       */
      @J2ktIncompatible
      static MapMaker tryWeakKeys(MapMaker mapMaker) {
        return mapMaker.weakKeys();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/CharSinkTest.java

        sink.write(STRING);
    
        assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed());
        assertEquals(STRING, sink.getString());
      }
    
      public void testWriteFrom_reader() throws IOException {
        StringReader reader = new StringReader(STRING);
        sink.writeFrom(reader);
    
        assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed());
        assertEquals(STRING, sink.getString());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/SmallCharMatcher.java

      /*
       * This method was rewritten in Java from an intermediate step of the Murmur hash function in
       * http://code.google.com/p/smhasher/source/browse/trunk/MurmurHash3.cpp, which contained the
       * following header:
       *
       * MurmurHash3 was written by Austin Appleby, and is placed in the public domain. The author
       * hereby disclaims copyright to this source code.
       */
      static int smear(int hashCode) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/StandardValueGraph.java

          long edgeCount) {
        this.isDirected = builder.directed;
        this.allowsSelfLoops = builder.allowsSelfLoops;
        this.nodeOrder = builder.nodeOrder.cast();
        // Prefer the heavier "MapRetrievalCache" for nodes if lookup is expensive.
        this.nodeConnections =
            (nodeConnections instanceof TreeMap)
                ? new MapRetrievalCache<N, GraphConnections<N, V>>(nodeConnections)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/StandardNetwork.java

        this.allowsParallelEdges = builder.allowsParallelEdges;
        this.allowsSelfLoops = builder.allowsSelfLoops;
        this.nodeOrder = builder.nodeOrder.cast();
        this.edgeOrder = builder.edgeOrder.cast();
        // Prefer the heavier "MapRetrievalCache" for nodes if lookup is expensive. This optimizes
        // methods that access the same node(s) repeatedly, such as Graphs.removeEdgesConnecting().
        this.nodeConnections =
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 6.9K bytes
    - Viewed (0)
Back to top