- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for nullsFirst (0.17 sec)
-
guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java
.compare( left.getValue(), right.getValue(), Ordering.natural().nullsFirst()) .result(); } }.sortedCopy(insertionOrder); } }) .named("TreeMultimap nullsFirst") .withFeatures(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 22.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/NaturalOrdering.java
return ((Comparable<Object>) left).compareTo(right); } @Override public <S extends Comparable<?>> Ordering<@Nullable S> nullsFirst() { Ordering<@Nullable Comparable<?>> result = nullsFirst; if (result == null) { result = nullsFirst = super.<Comparable<?>>nullsFirst(); } return (Ordering<@Nullable S>) result; } @Override public <S extends Comparable<?>> Ordering<@Nullable S> nullsLast() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jun 26 21:02:13 UTC 2023 - 2.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SubMapMultimapAsMapImplementsMapTest.java
} private TreeMultimap<String, Integer> createMultimap() { TreeMultimap<String, Integer> multimap = TreeMultimap.create( Ordering.<String>natural().nullsFirst(), Ordering.<Integer>natural().nullsFirst()); multimap.put("a", -1); multimap.put("a", -3); multimap.put("z", -2); return multimap; } @Override protected Map<String, Collection<Integer>> makeEmptyMap() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/NullsFirstOrdering.java
return ordering.<T>reverse().<@NonNull S>nullsLast(); } @SuppressWarnings("unchecked") // still need the right way to explain this @Override public <S extends @Nullable T> Ordering<@Nullable S> nullsFirst() { return (Ordering<@Nullable S>) this; } @Override public <S extends @Nullable T> Ordering<@Nullable S> nullsLast() { return ordering.<@NonNull S>nullsLast(); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Mar 27 16:03:47 UTC 2023 - 2.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ForwardingNavigableSetTest.java
new TestStringSetGenerator() { @Override protected Set<String> create(String[] elements) { SafeTreeSet<String> set = new SafeTreeSet<>(Ordering.natural().nullsFirst()); Collections.addAll(set, elements); return new StandardImplForwardingNavigableSet<>(set); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 6.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/Ordering.java
* * <p><b>Java 8+ users:</b> Use {@code Comparator.nullsFirst(thisComparator)} instead. */ // type parameter <S> lets us avoid the extra <String> in statements like: // Ordering<String> o = Ordering.<String>natural().nullsFirst(); @GwtCompatible(serializable = true) public <S extends T> Ordering<@Nullable S> nullsFirst() { return new NullsFirstOrdering<S>(this); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 39.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/OrderingTest.java
Ordering<@Nullable Integer> ordering = Ordering.<Integer>natural().<Integer>nullsFirst(); Helpers.<@Nullable Integer>testComparator(ordering, null, Integer.MIN_VALUE, 0, 1); new EqualsTester() .addEqualityGroup(ordering, Ordering.natural().nullsFirst()) .addEqualityGroup(numberOrdering.nullsFirst()) .addEqualityGroup(Ordering.natural()) .testEquals(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 42.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/OrderingTest.java
Ordering<@Nullable Integer> ordering = Ordering.<Integer>natural().<Integer>nullsFirst(); Helpers.<@Nullable Integer>testComparator(ordering, null, Integer.MIN_VALUE, 0, 1); new EqualsTester() .addEqualityGroup(ordering, Ordering.natural().nullsFirst()) .addEqualityGroup(numberOrdering.nullsFirst()) .addEqualityGroup(Ordering.natural()) .testEquals(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 42.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ForwardingSortedMapImplementsMapTest.java
} @Override protected SortedMap<String, Integer> makeEmptyMap() { return new SimpleForwardingSortedMap<>( new TreeMap<String, Integer>(Ordering.<String>natural().nullsFirst())); } @Override protected SortedMap<String, Integer> makePopulatedMap() { final SortedMap<String, Integer> sortedMap = makeEmptyMap(); sortedMap.put("one", 1); sortedMap.put("two", 2);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Mar 07 18:34:03 UTC 2024 - 4.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Ordering.java
* * <p><b>Java 8+ users:</b> Use {@code Comparator.nullsFirst(thisComparator)} instead. */ // type parameter <S> lets us avoid the extra <String> in statements like: // Ordering<String> o = Ordering.<String>natural().nullsFirst(); @GwtCompatible(serializable = true) public <S extends T> Ordering<@Nullable S> nullsFirst() { return new NullsFirstOrdering<S>(this); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 39.4K bytes - Viewed (0)