Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for nullsLast (0.17 sec)

  1. android/guava/src/com/google/common/collect/NaturalOrdering.java

        }
        return (Ordering<@Nullable S>) result;
      }
    
      @Override
      public <S extends Comparable<?>> Ordering<@Nullable S> nullsLast() {
        Ordering<@Nullable Comparable<?>> result = nullsLast;
        if (result == null) {
          result = nullsLast = super.<Comparable<?>>nullsLast();
        }
        return (Ordering<@Nullable S>) result;
      }
    
      @Override
      public <S extends Comparable<?>> Ordering<S> reverse() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 26 21:02:13 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ComparisonChainTest.java

                    .compare(a.anInt, b.anInt)
                    .compare(a.anEnum, b.anEnum, Ordering.natural().nullsLast())
                    .result();
        Comparator<Foo> comparatorUsingComparatorMethods =
            comparing((Foo foo) -> foo.aString)
                .thenComparing(foo -> foo.anInt)
                .thenComparing(foo -> foo.anEnum, nullsLast(naturalOrder()));
        ImmutableList<Foo> instances =
            ImmutableList.of(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 13:27:08 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. 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)
  4. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        Ordering<@Nullable Integer> ordering = Ordering.<Integer>natural().<Integer>nullsLast();
        Helpers.<@Nullable Integer>testComparator(ordering, 0, 1, Integer.MAX_VALUE, null);
    
        new EqualsTester()
            .addEqualityGroup(ordering, Ordering.natural().nullsLast())
            .addEqualityGroup(numberOrdering.nullsLast())
            .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)
  5. guava-tests/test/com/google/common/collect/OrderingTest.java

        Ordering<@Nullable Integer> ordering = Ordering.<Integer>natural().<Integer>nullsLast();
        Helpers.<@Nullable Integer>testComparator(ordering, 0, 1, Integer.MAX_VALUE, null);
    
        new EqualsTester()
            .addEqualityGroup(ordering, Ordering.natural().nullsLast())
            .addEqualityGroup(numberOrdering.nullsLast())
            .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)
  6. android/guava/src/com/google/common/collect/Ordering.java

       *
       * <p><b>Java 8+ users:</b> Use {@code Comparator.nullsLast(thisComparator)} instead.
       */
      // type parameter <S> lets us avoid the extra <String> in statements like:
      // Ordering<String> o = Ordering.<String>natural().nullsLast();
      @GwtCompatible(serializable = true)
      public <S extends T> Ordering<@Nullable S> nullsLast() {
        return new NullsLastOrdering<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)
  7. guava/src/com/google/common/collect/Ordering.java

       *
       * <p><b>Java 8+ users:</b> Use {@code Comparator.nullsLast(thisComparator)} instead.
       */
      // type parameter <S> lets us avoid the extra <String> in statements like:
      // Ordering<String> o = Ordering.<String>natural().nullsLast();
      @GwtCompatible(serializable = true)
      public <S extends T> Ordering<@Nullable S> nullsLast() {
        return new NullsLastOrdering<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)
  8. android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

      };
    
      static final Supplier<TreeSet<String>> STRING_TREESET_FACTORY =
          new Supplier<TreeSet<String>>() {
            @Override
            public TreeSet<String> get() {
              return new TreeSet<>(Ordering.natural().nullsLast());
            }
          };
    
      static void populateMultimapForGet(Multimap<Integer, String> multimap, String[] elements) {
        multimap.put(2, "foo");
        for (String element : elements) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

      };
    
      static final Supplier<TreeSet<String>> STRING_TREESET_FACTORY =
          new Supplier<TreeSet<String>>() {
            @Override
            public TreeSet<String> get() {
              return new TreeSet<>(Ordering.natural().nullsLast());
            }
          };
    
      static void populateMultimapForGet(Multimap<Integer, String> multimap, String[] elements) {
        multimap.put(2, "foo");
        for (String element : elements) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 28.9K bytes
    - Viewed (0)
Back to top