Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,535 for Comparer (0.1 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/strategy/StaticVersionComparator.java

                                                                                .put("sp", 6).build();
        /**
         * Compares 2 versions. Algorithm is inspired by PHP version_compare one.
         */
        @Override
        public int compare(Version version1, Version version2) {
            if (version1.equals(version2)) {
                return 0;
            }
    
            String[] parts1 = version1.getParts();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ExplicitOrdering.java

     */
    
    package com.google.common.collect;
    
    import com.google.common.annotations.GwtCompatible;
    import java.io.Serializable;
    import java.util.List;
    import javax.annotation.CheckForNull;
    
    /** An ordering that compares objects according to a given order. */
    @GwtCompatible(serializable = true)
    @ElementTypesAreNonnullByDefault
    final class ExplicitOrdering<T> extends Ordering<T> implements Serializable {
      final ImmutableMap<T, Integer> rankMap;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 20 14:22:42 UTC 2021
    - 2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ExplicitOrdering.java

     */
    
    package com.google.common.collect;
    
    import com.google.common.annotations.GwtCompatible;
    import java.io.Serializable;
    import java.util.List;
    import javax.annotation.CheckForNull;
    
    /** An ordering that compares objects according to a given order. */
    @GwtCompatible(serializable = true)
    @ElementTypesAreNonnullByDefault
    final class ExplicitOrdering<T> extends Ordering<T> implements Serializable {
      final ImmutableMap<T, Integer> rankMap;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 20 14:22:42 UTC 2021
    - 2K bytes
    - Viewed (0)
  4. test/typeparam/orderedmapsimp.dir/a.go

    func New[K, V any](compare func(K, K) int) *Map[K, V] {
    	return &Map[K, V]{compare: compare}
    }
    
    // NewOrdered returns a new map whose key is an ordered type.
    // This is like New, but does not require providing a compare function.
    // The map compare function uses the obvious key ordering.
    func NewOrdered[K Ordered, V any]() *Map[K, V] {
    	return New[K, V](func(k1, k2 K) int {
    		switch {
    		case k1 < k2:
    			return -1
    		case k1 > k2:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 28 21:40:40 UTC 2021
    - 5.5K bytes
    - Viewed (0)
  5. test/interface/fake.go

    	// make sure whole word is being compared,
    	// not just a single byte.
    	i = v.Field(4)
    	j = v.Field(5)
    	assert(i.Interface() != j.Interface())
    
    	i = v.Field(6)
    	j = v.Field(7)
    	assert(i.Interface() != j.Interface())
    
    	i = v.Field(8)
    	j = v.Field(9)
    	assert(i.Interface() == j.Interface())
    }
    
    /*
    comparing uncomparable type float32
    throw: interface compare
    
    panic PC=0x28ceb8 [1]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:33:41 UTC 2012
    - 1.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/Booleans.java

        }
        return builder.toString();
      }
    
      /**
       * Returns a comparator that compares two {@code boolean} arrays <a
       * href="http://en.wikipedia.org/wiki/Lexicographical_order">lexicographically</a>. That is, it
       * compares, using {@link #compare(boolean, boolean)}), the first pair of values that follow any
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/primitives/Booleans.java

        }
        return builder.toString();
      }
    
      /**
       * Returns a comparator that compares two {@code boolean} arrays <a
       * href="http://en.wikipedia.org/wiki/Lexicographical_order">lexicographically</a>. That is, it
       * compares, using {@link #compare(boolean, boolean)}), the first pair of values that follow any
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  8. test/fixedbugs/issue8606b.go

    // bad backing store pointers but nonzero length, so we can check that
    // the backing store never gets compared.
    //
    // We use two different bad strings so that pointer comparisons of
    // backing store pointers fail.
    
    package main
    
    import (
    	"fmt"
    	"reflect"
    	"syscall"
    	"unsafe"
    )
    
    type SI struct {
    	s string
    	i int
    }
    
    type SS struct {
    	s string
    	t string
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. src/runtime/libfuzzer_amd64.s

    // void runtime·libfuzzerCallTraceIntCmp(fn, arg0, arg1, fakePC uintptr)
    // Calls C function fn from libFuzzer and passes 2 arguments to it after
    // manipulating the return address so that libfuzzer's integer compare hooks
    // work
    // libFuzzer's compare hooks obtain the caller's address from the compiler
    // builtin __builtin_return_address. Since we invoke the hooks always
    // from the same native function, this builtin would always return the same
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 04:57:07 UTC 2023
    - 5K bytes
    - Viewed (0)
  10. src/reflect/deepequal.go

    // they are deeply equal regardless of content.
    //
    // As DeepEqual traverses the data values it may find a cycle. The
    // second and subsequent times that DeepEqual compares two pointer
    // values that have been compared before, it treats the values as
    // equal rather than examining the values to which they point.
    // This ensures that DeepEqual terminates.
    func DeepEqual(x, y any) bool {
    	if x == nil || y == nil {
    		return x == y
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:30 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top