Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for spec (0.34 sec)

  1. 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)
  2. 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)
  3. maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/DefaultArtifactCollectorTest.java

            public void addArtifact(ArtifactSpec spec) {
                artifacts.put(getKey(spec.artifact), spec);
    
                String key = spec.artifact.getDependencyConflictId();
                List<ArtifactVersion> artifactVersions = versions.computeIfAbsent(key, k -> new ArrayList<>());
                if (spec.artifact.getVersion() != null) {
                    artifactVersions.add(new DefaultArtifactVersion(spec.artifact.getVersion()));
                }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  4. maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

            boolean lowerBoundInclusive = spec.startsWith("[");
            boolean upperBoundInclusive = spec.endsWith("]");
    
            String process = spec.substring(1, spec.length() - 1).trim();
    
            Restriction restriction;
    
            int index = process.indexOf(',');
    
            if (index < 0) {
                if (!lowerBoundInclusive || !upperBoundInclusive) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  5. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.2K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/JapicmpTask.java

            WorkQueue queue = getWorkerExecutor().processIsolation(spec -> {
                spec.getClasspath().from(calculateWorkerClasspath());
                spec.getForkOptions().setMaxHeapSize("1g");
            });
            queue.submit(JApiCmpWorkAction.class, params -> params.getConfiguration().set(calculateWorkerConfiguration(baseline, current)));
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Apr 26 10:58:32 GMT 2023
    - 13.3K bytes
    - Viewed (0)
  7. 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)
  8. maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java

            assertSame(range, VersionRange.createFromVersionSpec("[1.0,1.2]")); // same instance from spec cache
    
            VersionRange spec = VersionRange.createFromVersionSpec("1.0");
            assertSame(spec, VersionRange.createFromVersionSpec("1.0")); // same instance from spec cache
            List<Restriction> restrictions = spec.getRestrictions();
            assertEquals(1, restrictions.size(), CHECK_NUM_RESTRICTIONS);
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 44.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

           *
           * Android API level 26 and JVM8 both let our Error propagate directly the first time and
           * throw NoClassDefFoundError thereafter. This is the proper behavior according to the spec.
           * See https://docs.oracle.com/javase/specs/jls/se8/html/jls-12.html#jls-12.4.2 (steps #11 and
           * #5).
           *
           * Note that that "first time" might happen in a test other than
           * testLexicographicalComparatorChoice!
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  10. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 25.9K bytes
    - Viewed (0)
Back to top