Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 214 for compareIDs (0.18 sec)

  1. src/go/types/util.go

    // out this code allows more of the rest of the code
    // to be shared.
    
    package types
    
    import (
    	"go/ast"
    	"go/constant"
    	"go/token"
    )
    
    const isTypes2 = false
    
    // cmpPos compares the positions p and q and returns a result r as follows:
    //
    // r <  0: p is before q
    // r == 0: p and q are the same position (but may not be identical)
    // r >  0: p is after q
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/CacheVersionTest.groovy

            expect:
            CacheVersion.parse("") == CacheVersion.empty()
            CacheVersion.parse("42") == CacheVersion.of(42)
            CacheVersion.parse("1.2.3.4.5") == CacheVersion.of(1, 2, 3, 4, 5)
        }
    
        def "compares versions"() {
            expect:
            CacheVersion.of(2) > CacheVersion.of(1)
            CacheVersion.of(1) < CacheVersion.of(2)
            CacheVersion.of(1) == CacheVersion.of(1)
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/versions/versions.go

    // The versions x and y must begin with a "go" prefix: "go1.21" not "1.21".
    // Invalid versions, including the empty string, compare less than
    // valid versions and equal to each other.
    // The language version "go1.21" compares less than the
    // release candidate and eventual releases "go1.21rc1" and "go1.21.0".
    // Custom toolchain suffixes are ignored during comparison:
    // "go1.21.0" and "go1.21.0-bigcorp" are equal.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/changes/AbsolutePathChangeDetector.java

    import org.gradle.internal.execution.history.changes.CompareStrategy.ChangeDetector;
    
    import java.util.LinkedHashSet;
    import java.util.Map;
    import java.util.Set;
    
    /**
     * Compares by absolute paths and file contents. Order does not matter.
     */
    public class AbsolutePathChangeDetector<S> implements ChangeDetector<S> {
    
        private final ItemComparator<S> itemComparator;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  5. src/go/version/version.go

    // The versions x and y must begin with a "go" prefix: "go1.21" not "1.21".
    // Invalid versions, including the empty string, compare less than
    // valid versions and equal to each other.
    // The language version "go1.21" compares less than the
    // release candidate and eventual releases "go1.21rc1" and "go1.21.0".
    func Compare(x, y string) int {
    	return gover.Compare(stripGo(x), stripGo(y))
    }
    
    // IsValid reports whether the version x is valid.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 19:56:48 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/changes/TrivialChangeDetector.java

    import org.gradle.internal.execution.history.changes.CompareStrategy.ChangeDetector;
    import org.gradle.internal.execution.history.changes.CompareStrategy.ChangeFactory;
    
    import java.util.Map;
    
    /**
     * Compares collections if either current or previous are empty, or both current and previous have one element.
     */
    public class TrivialChangeDetector<S> implements ChangeDetector<S> {
        private final ItemComparator<S> itemComparator;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  7. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/changes/IgnoredPathCompareStrategy.java

    import org.gradle.internal.fingerprint.impl.IgnoredPathFingerprintingStrategy;
    import org.gradle.internal.hash.HashCode;
    
    import java.util.Comparator;
    import java.util.List;
    import java.util.Map;
    
    /**
     * Compares {@link FileCollectionFingerprint}s ignoring the path.
     */
    public class IgnoredPathCompareStrategy extends AbstractFingerprintCompareStrategy {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  8. pkg/maps/maps.go

    	for key, value := range subset {
    		if supersetValue, ok := superset[key]; !ok || supersetValue != value {
    			return false
    		}
    	}
    	return true
    }
    
    // EqualFunc is like Equal, but compares values using eq.
    // Keys are still compared with ==.
    func EqualFunc[M1 ~map[K]V1, M2 ~map[K]V2, K comparable, V1, V2 any](m1 M1, m2 M2, eq func(V1, V2) bool) bool {
    	return maps.EqualFunc(m1, m2, eq)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 01 22:48:35 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/VfsRelativePath.java

            return lastSeparator;
        }
    
        /**
         * Compares to the first segment of a relative path.
         *
         * A segment of a path is the part between two file separators.
         * For example, the path some/long/path has the segments some, long and path.
         *
         * Similar to {@link #lengthOfCommonPrefix(String, CaseSensitivity)},
         * only that this method compares to the first segment of the path if there is no common prefix.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  10. operator/pkg/util/yaml.go

    	}
    	my, err := yaml.JSONToYAML(merged)
    	if err != nil {
    		return "", fmt.Errorf("jsonToYAML error (%s) for merged object: \n%s", err, merged)
    	}
    
    	return string(my), nil
    }
    
    // yamlDiff compares single YAML file
    func yamlDiff(a, b string) string {
    	ao, bo := make(map[string]any), make(map[string]any)
    	if err := yaml.Unmarshal([]byte(a), &ao); err != nil {
    		return err.Error()
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Jan 14 02:41:27 UTC 2023
    - 7.2K bytes
    - Viewed (0)
Back to top