Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for specs (0.13 sec)

  1. android/guava-tests/test/com/google/common/net/HostSpecifierTest.java

          assertBad(spec);
        }
      }
    
      public void testEquality() {
        new EqualsTester()
            .addEqualityGroup(spec("1.2.3.4"), spec("1.2.3.4"))
            .addEqualityGroup(spec("2001:db8::1"), spec("2001:db8::1"), spec("[2001:db8::1]"))
            .addEqualityGroup(spec("2001:db8::2"))
            .addEqualityGroup(spec("google.com"), spec("google.com"))
            .addEqualityGroup(spec("www.google.com"))
            .testEquals();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 18 15:33:20 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

        } catch (ClassCastException acceptable) {
          // allowed by the spec
        }
      }
    
      public void testContainsEntryWithIncomparableValue() {
        try {
          assertFalse(getMap().entrySet().contains(Helpers.mapEntry(k0(), IncomparableType.INSTANCE)));
        } catch (ClassCastException acceptable) {
          // allowed by the spec
        }
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/net/HostSpecifierTest.java

          assertBad(spec);
        }
      }
    
      public void testEquality() {
        new EqualsTester()
            .addEqualityGroup(spec("1.2.3.4"), spec("1.2.3.4"))
            .addEqualityGroup(spec("2001:db8::1"), spec("2001:db8::1"), spec("[2001:db8::1]"))
            .addEqualityGroup(spec("2001:db8::2"))
            .addEqualityGroup(spec("google.com"), spec("google.com"))
            .addEqualityGroup(spec("www.google.com"))
            .testEquals();
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Fri Feb 18 15:33:20 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/SubtypeTester.java

        TestSubtype spec = method.getAnnotation(TestSubtype.class);
        assertWithMessage("%s is subtype of %s", paramType, returnType)
            .that(TypeToken.of(paramType).isSubtypeOf(returnType))
            .isTrue();
        assertWithMessage("%s is supertype of %s", returnType, paramType)
            .that(TypeToken.of(returnType).isSupertypeOf(paramType))
            .isTrue();
        if (!spec.suppressGetSubtype()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  5. android/guava/pom.xml

                  <placement>X</placement>
                </tag>
                <tag>
                  <name>revised</name>
                  <placement>X</placement>
                </tag>
                <tag>
                  <name>spec</name>
                  <placement>X</placement>
                </tag>
              </tags>
    
              <!-- TODO(cpovirk): Move this to the parent after making the package-list files available there. -->
    XML
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 11 16:37:45 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

        } catch (ClassCastException acceptable) {
          // allowed by the spec
        }
      }
    
      public void testContainsEntryWithIncomparableValue() {
        try {
          assertFalse(getMap().entrySet().contains(Helpers.mapEntry(k0(), IncomparableType.INSTANCE)));
        } catch (ClassCastException acceptable) {
          // allowed by the spec
        }
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/LegacyComparable.java

      private final String value;
    
      LegacyComparable(String value) {
        this.value = value;
      }
    
      @Override
      public int compareTo(Object object) {
        // This method is spec'd to throw CCE if object is of the wrong type
        LegacyComparable that = (LegacyComparable) object;
        return this.value.compareTo(that.value);
      }
    
      @Override
      public boolean equals(@Nullable Object object) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java

    import java.util.Iterator;
    import org.checkerframework.checker.nullness.qual.NonNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A simplistic collection which implements only the bare minimum allowed by the spec, and throws
     * exceptions whenever it can.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class MinimalCollection<E extends @Nullable Object> extends AbstractCollection<E> {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/AbstractNonStreamingHashFunctionTest.java

        Hasher h1 = new NonStreamingVersion().newHasher();
        Hasher h2 = new NonStreamingVersion().newHasher();
        String s = new String(chars);
        // this is the correct implementation of the spec
        for (int i = 0; i < s.length(); i++) {
          h1.putChar(s.charAt(i));
        }
        h2.putUnencodedChars(s);
        assertEquals(h1.hash(), h2.hash());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/hash/AbstractNonStreamingHashFunctionTest.java

        Hasher h1 = new NonStreamingVersion().newHasher();
        Hasher h2 = new NonStreamingVersion().newHasher();
        String s = new String(chars);
        // this is the correct implementation of the spec
        for (int i = 0; i < s.length(); i++) {
          h1.putChar(s.charAt(i));
        }
        h2.putUnencodedChars(s);
        assertEquals(h1.hash(), h2.hash());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
Back to top