Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for c2 (0.05 sec)

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

        TestCloseable c1 = closer.register(TestCloseable.normal());
        TestCloseable c2 = closer.register(TestCloseable.normal());
        TestCloseable c3 = closer.register(TestCloseable.normal());
    
        assertFalse(c1.isClosed());
        assertFalse(c2.isClosed());
        assertFalse(c3.isClosed());
    
        closer.close();
    
        assertTrue(c1.isClosed());
        assertTrue(c2.isClosed());
        assertTrue(c3.isClosed());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/CloserTest.java

        TestCloseable c1 = closer.register(TestCloseable.normal());
        TestCloseable c2 = closer.register(TestCloseable.normal());
        TestCloseable c3 = closer.register(TestCloseable.normal());
    
        assertFalse(c1.isClosed());
        assertFalse(c2.isClosed());
        assertFalse(c3.isClosed());
    
        closer.close();
    
        assertTrue(c1.isClosed());
        assertTrue(c2.isClosed());
        assertTrue(c3.isClosed());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionTest.java

            Comparable c2 = newComparable(v2);
            assertEquals(0, c1.compareTo(c2), "expected " + v1 + " == " + v2);
            assertEquals(0, c2.compareTo(c1), "expected " + v2 + " == " + v1);
            assertEquals(c1.hashCode(), c2.hashCode(), "expected same hashcode for " + v1 + " and " + v2);
            assertEquals(c1, c2, "expected " + v1 + ".equals( " + v2 + " )");
            assertEquals(c2, c1, "expected " + v2 + ".equals( " + v1 + " )");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14K bytes
    - Viewed (0)
  4. guava/src/com/google/common/hash/Murmur3_32HashFunction.java

          while (i + 4 <= utf16Length) {
            char c0 = input.charAt(i);
            char c1 = input.charAt(i + 1);
            char c2 = input.charAt(i + 2);
            char c3 = input.charAt(i + 3);
            if (c0 < 0x80 && c1 < 0x80 && c2 < 0x80 && c3 < 0x80) {
              int k1 = c0 | (c1 << 8) | (c2 << 16) | (c3 << 24);
              k1 = mixK1(k1);
              h1 = mixH1(h1, k1);
              i += 4;
              len += 4;
            } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 02 13:50:22 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/MethodMap.java

         *
         * @param c1 first signature to compare
         * @param c2 second signature to compare
         * @return MORE_SPECIFIC if c1 is more specific than c2, LESS_SPECIFIC if
         *         c1 is less specific than c2, INCOMPARABLE if they are incomparable.
         */
        private static int moreSpecific(Class<?>[] c1, Class<?>[] c2) {
            boolean c1MoreSpecific = false;
            boolean c2MoreSpecific = false;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/CharSourceTest.java

        CharSource c1 = CharSource.wrap("abc");
        CharSource c2 = CharSource.wrap("");
        CharSource c3 = CharSource.wrap("de");
    
        String expected = "abcde";
    
        assertEquals(expected, CharSource.concat(ImmutableList.of(c1, c2, c3)).read());
        assertEquals(expected, CharSource.concat(c1, c2, c3).read());
        assertEquals(expected, CharSource.concat(ImmutableList.of(c1, c2, c3).iterator()).read());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

        assertThat(pool.connectionCount()).isEqualTo(2)
    
        // Running at time 150, the pool evicts c2.
        assertThat(pool.closeConnections(150L)).isEqualTo(0L)
        assertThat(pool.connectionCount()).isEqualTo(1)
        assertThat(c1.socket().isClosed).isFalse()
        assertThat(c2.socket().isClosed).isTrue()
    
        // Running at time 150, the pool returns that nothing can be evicted until time 175.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jun 22 16:06:35 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/HttpUrlJvmTest.kt

          .isEqualTo(URI("http://host/a%C2%80b"))
        assertThat("http://host/a\u009fb".toHttpUrl().toUri())
          .isEqualTo(URI("http://host/a%C2%9Fb"))
        // Percent-encoded in the query.
        assertThat("http://host/?a\u0000b".toHttpUrl().toUri())
          .isEqualTo(URI("http://host/?a%00b"))
        assertThat("http://host/?a\u0080b".toHttpUrl().toUri())
          .isEqualTo(URI("http://host/?a%C2%80b"))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/CharSourceTest.java

        CharSource c1 = CharSource.wrap("abc");
        CharSource c2 = CharSource.wrap("");
        CharSource c3 = CharSource.wrap("de");
    
        String expected = "abcde";
    
        assertEquals(expected, CharSource.concat(ImmutableList.of(c1, c2, c3)).read());
        assertEquals(expected, CharSource.concat(c1, c2, c3).read());
        assertEquals(expected, CharSource.concat(ImmutableList.of(c1, c2, c3).iterator()).read());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/escape/UnicodeEscaper.java

            char c2 = seq.charAt(index);
            if (Character.isLowSurrogate(c2)) {
              return Character.toCodePoint(c1, c2);
            }
            throw new IllegalArgumentException(
                "Expected low surrogate but got char '"
                    + c2
                    + "' with value "
                    + (int) c2
                    + " at index "
                    + index
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 13.2K bytes
    - Viewed (0)
Back to top