Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for B1 (0.15 sec)

  1. android/guava-tests/test/com/google/common/base/MoreObjectsTest.java

        assertSame(s1, s2);
    
        Long n1 = 42L;
        Long n2 = MoreObjects.firstNonNull(null, n1);
        assertSame(n1, n2);
    
        Boolean b1 = true;
        Boolean b2 = MoreObjects.firstNonNull(b1, null);
        assertSame(b1, b2);
      }
    
      public void testFirstNonNull_throwsNullPointerException() {
        try {
          MoreObjects.firstNonNull(null, null);
          fail();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/MoreObjectsTest.java

        assertSame(s1, s2);
    
        Long n1 = 42L;
        Long n2 = MoreObjects.firstNonNull(null, n1);
        assertSame(n1, n2);
    
        Boolean b1 = true;
        Boolean b2 = MoreObjects.firstNonNull(b1, null);
        assertSame(b1, b2);
      }
    
      public void testFirstNonNull_throwsNullPointerException() {
        try {
          MoreObjects.firstNonNull(null, null);
          fail();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/Hasher.java

     * following three expressions all generate colliding hash codes:
     *
     * <pre>{@code
     * newHasher().putByte(b1).putByte(b2).putByte(b3).hash()
     * newHasher().putByte(b1).putBytes(new byte[] { b2, b3 }).hash()
     * newHasher().putBytes(new byte[] { b1, b2, b3 }).hash()
     * }</pre>
     *
     * <p>If you wish to avoid this, you should either prepend or append the size of each chunk. Keep in
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 5.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

        ByteSource b1 = ByteSource.wrap(new byte[] {0, 1, 2, 3});
        ByteSource b2 = ByteSource.wrap(new byte[0]);
        ByteSource b3 = ByteSource.wrap(new byte[] {4, 5});
    
        byte[] expected = {0, 1, 2, 3, 4, 5};
    
        assertArrayEquals(expected, ByteSource.concat(ImmutableList.of(b1, b2, b3)).read());
        assertArrayEquals(expected, ByteSource.concat(b1, b2, b3).read());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/ByteSourceTest.java

        ByteSource b1 = ByteSource.wrap(new byte[] {0, 1, 2, 3});
        ByteSource b2 = ByteSource.wrap(new byte[0]);
        ByteSource b3 = ByteSource.wrap(new byte[] {4, 5});
    
        byte[] expected = {0, 1, 2, 3, 4, 5};
    
        assertArrayEquals(expected, ByteSource.concat(ImmutableList.of(b1, b2, b3)).read());
        assertArrayEquals(expected, ByteSource.concat(b1, b2, b3).read());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/CharsetsTest.java

      public void testWhyUsAsciiIsDangerous() {
        byte[] b1 = "朝日新聞".getBytes(Charsets.US_ASCII);
        byte[] b2 = "聞朝日新".getBytes(Charsets.US_ASCII);
        byte[] b3 = "????".getBytes(Charsets.US_ASCII);
        byte[] b4 = "ニュース".getBytes(Charsets.US_ASCII);
        byte[] b5 = "スューー".getBytes(Charsets.US_ASCII);
        // Assert they are all equal (using the transitive property)
        assertTrue(Arrays.equals(b1, b2));
        assertTrue(Arrays.equals(b2, b3));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu May 04 09:41:29 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

        TypeWithDuplicates b1 = new TypeWithDuplicates(2, 1);
        TypeWithDuplicates b2 = new TypeWithDuplicates(2, 2);
        TypeWithDuplicates c = new TypeWithDuplicates(3, 1);
        CollectorTester.of(collector, equivalence)
            .expectCollects(
                ImmutableMultiset.<TypeWithDuplicates>builder().add(a).addCopies(b1, 2).add(c).build(),
                a,
                b1,
                c,
                b2);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 25.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/LittleEndianDataInputStream.java

        return (int) in.skip(n);
      }
    
      @CanIgnoreReturnValue // to skip a byte
      @Override
      public int readUnsignedByte() throws IOException {
        int b1 = in.read();
        if (0 > b1) {
          throw new EOFException();
        }
    
        return b1;
      }
    
      /**
       * Reads an unsigned {@code short} as specified by {@link DataInputStream#readUnsignedShort()},
       * except using little-endian byte order.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableSetTest.java

            };
        TypeWithDuplicates a = new TypeWithDuplicates(1, 1);
        TypeWithDuplicates b1 = new TypeWithDuplicates(2, 1);
        TypeWithDuplicates b2 = new TypeWithDuplicates(2, 2);
        TypeWithDuplicates c = new TypeWithDuplicates(3, 1);
        CollectorTester.of(collector, equivalence)
            .expectCollects(ImmutableSet.of(a, b1, c), a, b1, c, b2);
      }
    
      @Override
      <E extends Comparable<E>> Builder<E> builder() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/CharsetsTest.java

      public void testWhyUsAsciiIsDangerous() {
        byte[] b1 = "朝日新聞".getBytes(Charsets.US_ASCII);
        byte[] b2 = "聞朝日新".getBytes(Charsets.US_ASCII);
        byte[] b3 = "????".getBytes(Charsets.US_ASCII);
        byte[] b4 = "ニュース".getBytes(Charsets.US_ASCII);
        byte[] b5 = "スューー".getBytes(Charsets.US_ASCII);
        // Assert they are all equal (using the transitive property)
        assertTrue(Arrays.equals(b1, b2));
        assertTrue(Arrays.equals(b2, b3));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu May 04 09:41:29 GMT 2023
    - 2.5K bytes
    - Viewed (0)
Back to top