- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 566 for compare (0.04 sec)
-
guava-tests/benchmark/com/google/common/collect/ComparatorDelegationOverheadBenchmark.java
tmp += copy[0]; } return tmp; } private static final Comparator<Integer> NATURAL_INTEGER = new Comparator<Integer>() { @Override public int compare(Integer o1, Integer o2) { return o1.compareTo(o2); } }; @Benchmark int arraysSortOrderingFromNatural(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 2.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/NaturalOrdering.java
@LazyInit @CheckForNull private transient Ordering<@Nullable Comparable<?>> nullsLast; @Override public int compare(Comparable<?> left, Comparable<?> right) { checkNotNull(left); // for GWT checkNotNull(right); return ((Comparable<Object>) left).compareTo(right); } @Override public <S extends Comparable<?>> Ordering<@Nullable S> nullsFirst() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jun 26 21:02:13 UTC 2023 - 2.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/ElementOrderTest.java
Comparator<NonComparableSuperClass> comparator = new Comparator<NonComparableSuperClass>() { @Override public int compare(NonComparableSuperClass left, NonComparableSuperClass right) { return left.value.compareTo(right.value); } }; MutableGraph<NonComparableSuperClass> graph =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 8.1K bytes - Viewed (0) -
istioctl/pkg/writer/compare/comparator.go
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package compare import ( "encoding/json" "fmt" "io" "strings" admin "github.com/envoyproxy/go-control-plane/envoy/admin/v3" discovery "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3"
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 3.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingSortedMap.java
@CheckForNull Comparator<?> comparator, @CheckForNull Object o1, @CheckForNull Object o2) { if (comparator == null) { return ((Comparable<@Nullable Object>) o1).compareTo(o2); } else { return ((Comparator<@Nullable Object>) comparator).compare(o1, o2); } } /** * A sensible definition of {@link #containsKey} in terms of the {@code firstKey()} method of
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 15:26:39 UTC 2023 - 5.6K bytes - Viewed (0) -
istioctl/pkg/proxystatus/proxystatus.go
"istio.io/istio/istioctl/pkg/clioptions" "istio.io/istio/istioctl/pkg/completion" "istio.io/istio/istioctl/pkg/multixds" "istio.io/istio/istioctl/pkg/util/ambient" "istio.io/istio/istioctl/pkg/writer/compare" "istio.io/istio/istioctl/pkg/writer/pilot" pilotxds "istio.io/istio/pilot/pkg/xds" "istio.io/istio/pkg/log" ) var configDumpFile string func readConfigFile(filename string) ([]byte, error) {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 6.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ReverseNaturalOrdering.java
static final ReverseNaturalOrdering INSTANCE = new ReverseNaturalOrdering(); @Override public int compare(Comparable<?> left, Comparable<?> right) { checkNotNull(left); // right null is caught later if (left == right) { return 0; } return ((Comparable<Object>) right).compareTo(left); } @Override public <S extends Comparable<?>> Ordering<S> reverse() { return Ordering.natural();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sun Jun 20 14:22:42 UTC 2021 - 2.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/ReverseNaturalOrdering.java
static final ReverseNaturalOrdering INSTANCE = new ReverseNaturalOrdering(); @Override public int compare(Comparable<?> left, Comparable<?> right) { checkNotNull(left); // right null is caught later if (left == right) { return 0; } return ((Comparable<Object>) right).compareTo(left); } @Override public <S extends Comparable<?>> Ordering<S> reverse() { return Ordering.natural();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sun Jun 20 14:22:42 UTC 2021 - 2.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/TreeMultimap.java
/** * Implementation of {@code Multimap} whose keys and values are ordered by their natural ordering or * by supplied comparators. In all cases, this implementation uses {@link Comparable#compareTo} or * {@link Comparator#compare} instead of {@link Object#equals} to determine equivalence of * instances. * * <p><b>Warning:</b> The comparators or comparables used must be <i>consistent with equals</i> as
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Mar 09 00:21:17 UTC 2024 - 8.7K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AggregateFutureState.java
* * 1. On Android, querying a WeakReference blocks if the GC is doing an otherwise-concurrent * pass. * * 2. We would probably choose to compare exceptions using == instead of equals() (for * consistency with how weak references are cleared). That's a behavior change -- arguably the * removal of a feature. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 28 20:40:51 UTC 2024 - 8.4K bytes - Viewed (0)