- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 664 for Comparer (0.13 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
src/sync/atomic/value.go
continue } // First store completed. Check type and overwrite data. if typ != np.typ { panic("sync/atomic: compare and swap of inconsistently typed value into Value") } // Compare old and current via runtime equality check. // This allows value types to be compared, something // not offered by the package functions. // CompareAndSwapPointer below only ensures vp.data
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:48:55 UTC 2024 - 5.9K bytes - Viewed (0) -
test/typeparam/orderedmap.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: Tue Mar 01 19:45:34 UTC 2022 - 7.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/version/helpers.go
if vType != versionTypeGA { if minorVersion, err = strconv.Atoi(submatches[3]); err != nil { return 0, 0, 0, false } } return majorVersion, vType, minorVersion, true } // CompareKubeAwareVersionStrings compares two kube-like version strings. // Kube-like version strings are starting with a v, followed by a major version, optional "alpha" or "beta" strings
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun May 20 08:40:04 UTC 2018 - 2.3K bytes - Viewed (0)