Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for bytes (0.13 sec)

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

        ByteArrayOutputStream bytes = new ByteArrayOutputStream();
        ObjectOutputStream oos = new ObjectOutputStream(bytes);
        oos.writeObject(map);
        oos.flush();
    
        int mapSize = bytes.size();
        oos.writeObject(keySet);
        oos.writeObject(values);
        oos.close();
    
        int finalSize = bytes.size();
    
        assertThat(finalSize - mapSize).isLessThan(100);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 14:39:16 GMT 2024
    - 37.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableMap.java

       */
      @J2ktIncompatible // serialization
      static class SerializedForm<K, V> implements Serializable {
        // This object retains references to collections returned by keySet() and value(). This saves
        // bytes when the both the map and its keySet or value collection are written to the same
        // instance of ObjectOutputStream.
    
        // TODO(b/160980469): remove support for the old serialization format after some time
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

      Short generateShortObject() {
        return new Short(generateShort());
      }
    
      @Generates
      byte generateByte() {
        return (byte) generateInt();
      }
    
      @SuppressWarnings("removal") // b/321209431 -- maybe just use valueOf here?
      @Generates
      Byte generateByteObject() {
        return new Byte(generateByte());
      }
    
      @Generates
      char generateChar() {
        return generateString().charAt(0);
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28.6K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(Stopwatch.class, Stopwatch.createUnstarted())
              // io types
              .put(InputStream.class, new ByteArrayInputStream(new byte[0]))
              .put(ByteArrayInputStream.class, new ByteArrayInputStream(new byte[0]))
              .put(Readable.class, new StringReader(""))
              .put(Reader.class, new StringReader(""))
              .put(StringReader.class, new StringReader(""))
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 21K bytes
    - Viewed (1)
  5. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(Stopwatch.class, Stopwatch.createUnstarted())
              // io types
              .put(InputStream.class, new ByteArrayInputStream(new byte[0]))
              .put(ByteArrayInputStream.class, new ByteArrayInputStream(new byte[0]))
              .put(Readable.class, new StringReader(""))
              .put(Reader.class, new StringReader(""))
              .put(StringReader.class, new StringReader(""))
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 20.5K bytes
    - Viewed (0)
Back to top