Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 75 for spec (0.14 sec)

  1. android/guava/src/com/google/common/cache/CacheBuilderSpec.java

        protected void parseLong(CacheBuilderSpec spec, long value) {
          checkArgument(
              spec.maximumSize == null, "maximum size was already set to %s", spec.maximumSize);
          checkArgument(
              spec.maximumWeight == null, "maximum weight was already set to %s", spec.maximumWeight);
          spec.maximumSize = value;
        }
      }
    
      /** Parse maximumWeight */
      static class MaximumWeightParser extends LongParser {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Aug 22 14:27:44 GMT 2022
    - 18.1K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

      }
    
      private void testSubMultisetEntrySet(SubMultisetSpec spec) {
        List<Entry<E>> entries = copyToList(sortedMultiset.entrySet());
        for (int i = 0; i < entries.size(); i++) {
          List<Entry<E>> expected = spec.expectedEntries(i, entries);
          SortedMultiset<E> subMultiset = spec.subMultiset(sortedMultiset, entries, i);
          assertEquals(expected, copyToList(subMultiset.entrySet()));
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 25.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/CacheBuilderSpec.java

        protected void parseLong(CacheBuilderSpec spec, long value) {
          checkArgument(
              spec.maximumSize == null, "maximum size was already set to %s", spec.maximumSize);
          checkArgument(
              spec.maximumWeight == null, "maximum weight was already set to %s", spec.maximumWeight);
          spec.maximumSize = value;
        }
      }
    
      /** Parse maximumWeight */
      static class MaximumWeightParser extends LongParser {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Aug 22 14:27:44 GMT 2022
    - 18.1K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

      }
    
      public void testParse_initialCapacity() {
        CacheBuilderSpec spec = parse("initialCapacity=10");
        assertEquals(10, spec.initialCapacity.intValue());
        assertNull(spec.maximumSize);
        assertNull(spec.maximumWeight);
        assertNull(spec.concurrencyLevel);
        assertNull(spec.keyStrength);
        assertNull(spec.valueStrength);
        assertNull(spec.writeExpirationTimeUnit);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.2K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. android/guava/src/com/google/common/net/UrlEscapers.java

       * interoperate with systems that require semicolons.
       *
       * <p><b>Note:</b> Unlike other escapers, URL escapers produce <a
       * href="https://url.spec.whatwg.org/#percent-encode">uppercase</a> hexadecimal sequences.
       *
       */
      public static Escaper urlFormParameterEscaper() {
        return URL_FORM_PARAMETER_ESCAPER;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 28 15:04:33 GMT 2021
    - 6.9K bytes
    - Viewed (0)
  10. 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 Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.1K bytes
    - Viewed (0)
Back to top