Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 627 for compactor (0.3 sec)

  1. subprojects/core-api/src/main/java/org/gradle/util/CollectionUtils.java

        }
    
    
        /**
         * Returns a sorted copy of the provided collection of things. Uses the provided comparator to sort.
         */
        public static <T> List<T> sort(Iterable<? extends T> things, Comparator<? super T> comparator) {
            List<T> copy = toMutableList(things);
            Collections.sort(copy, comparator);
            return copy;
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 11:17:19 UTC 2024
    - 26K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/test/groovy/org/gradle/util/internal/CollectionUtilsTest.groovy

            toStringList(list) == ["42", "string"]
        }
    
        def "list compacting"() {
            expect:
            compact([1, null, 2]) == [1, 2]
            compact([null, 1, 2]) == [1, 2]
            compact([1, 2, null]) == [1, 2]
    
            def l = [1, 2, 3]
            compact(l).is l
    
        }
    
        def "collect array"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  3. cmd/data-usage-cache.go

    	e, ok := d.Cache[path.Key()]
    	if !ok {
    		return
    	}
    	if e.Compacted {
    		return
    	}
    	// If direct children have more, compact all.
    	if len(e.Children) > limit && compactSelf {
    		flat := d.sizeRecursive(path.Key())
    		flat.Compacted = true
    		d.deleteRecursive(path)
    		d.replaceHashed(path, nil, *flat)
    		return
    	}
    	total := d.totalChildrenRec(path.Key())
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 10 14:49:50 UTC 2024
    - 42.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/compatibility.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	{
    		// compact before decoding since embedded RawExtension fields retain indenting
    		compacted := &bytes.Buffer{}
    		if err := gojson.Compact(compacted, actualJSON); err != nil {
    			t.Error(err)
    		}
    
    		jsonDecoded := emptyObj.DeepCopyObject()
    		jsonDecoded, _, err = c.JSON.Decode(compacted.Bytes(), &gvk, jsonDecoded)
    		if err != nil {
    			t.Error(err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 16:38:32 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

         */
        private static final int UNSET_EXPECTED_SIZE = -1;
    
        private final Comparator<B> comparator;
        private int expectedSize = UNSET_EXPECTED_SIZE;
        private int maximumSize = Integer.MAX_VALUE;
    
        private Builder(Comparator<B> comparator) {
          this.comparator = checkNotNull(comparator);
        }
    
        /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 34K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/text/internal/language/compact/language.go

    // for which data exists in the text repository.The index will change over time
    // and should not be stored in persistent storage. If t does not match a compact
    // index, exact will be false and the compact index will be returned for the
    // first match after repeatedly taking the Parent of t.
    func LanguageID(t Tag) (id ID, exact bool) {
    	return t.language, t.full == nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

          Comparator<? super E> comparator, Iterable<? extends E> elements) {
        checkNotNull(comparator);
        return copyOfInternal(comparator, elements, false);
      }
    
      public static <E> ImmutableSortedSet<E> copyOf(
          Comparator<? super E> comparator, Collection<? extends E> elements) {
        checkNotNull(comparator);
        return copyOfInternal(comparator, elements, false);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  8. src/encoding/json/indent.go

    			dst = append(dst, '\\', 'u', '2', '0', '2', hex[src[i+2]&0xF])
    			start = i + len("\u2029")
    		}
    	}
    	return append(dst, src[start:]...)
    }
    
    // Compact appends to dst the JSON-encoded src with
    // insignificant space characters elided.
    func Compact(dst *bytes.Buffer, src []byte) error {
    	dst.Grow(len(src))
    	b := dst.AvailableBuffer()
    	b, err := appendCompact(b, src, false)
    	dst.Write(b)
    	return err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 20:19:31 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java

        MIN_MAX {
          @Override
          public Queue<Integer> create(Comparator<Integer> comparator) {
            return MinMaxPriorityQueue.orderedBy(comparator).create();
          }
        },
        PRIORITY_QUEUE {
          @Override
          public Queue<Integer> create(Comparator<Integer> comparator) {
            return new PriorityQueue<>(11, comparator);
          }
        },
        INVERTED_MIN_MAX {
          @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java

       * should be identical to the one the user passed in. We touch only the
       * "secret" comparator used by the delegate implementation.
       */
    
      private static <K, V> SortedMap<K, V> newModifiableDelegate(Comparator<? super K> comparator) {
        return newTreeMap(nullAccepting(comparator));
      }
    
      private static <E> Comparator<@Nullable E> nullAccepting(Comparator<E> comparator) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 16.4K bytes
    - Viewed (0)
Back to top