Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 181 for Ordering (0.06 seconds)

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

    import org.jspecify.annotations.Nullable;
    
    /** An ordering that treats {@code null} as less than all other values. */
    @GwtCompatible
    final class NullsFirstOrdering<T extends @Nullable Object> extends Ordering<@Nullable T>
        implements Serializable {
      final Ordering<? super T> ordering;
    
      NullsFirstOrdering(Ordering<? super T> ordering) {
        this.ordering = ordering;
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/NullsLastOrdering.java

    import org.jspecify.annotations.Nullable;
    
    /** An ordering that treats {@code null} as greater than all other values. */
    @GwtCompatible
    final class NullsLastOrdering<T extends @Nullable Object> extends Ordering<@Nullable T>
        implements Serializable {
      final Ordering<? super T> ordering;
    
      NullsLastOrdering(Ordering<? super T> ordering) {
        this.ordering = ordering;
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/NullsLastOrdering.java

    import org.jspecify.annotations.Nullable;
    
    /** An ordering that treats {@code null} as greater than all other values. */
    @GwtCompatible
    final class NullsLastOrdering<T extends @Nullable Object> extends Ordering<@Nullable T>
        implements Serializable {
      final Ordering<? super T> ordering;
    
      NullsLastOrdering(Ordering<? super T> ordering) {
        this.ordering = ordering;
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/NaturalOrdering.java

        Ordering<@Nullable Comparable<?>> result = nullsLast;
        if (result == null) {
          result = nullsLast = super.<Comparable<?>>nullsLast();
        }
        return (Ordering<@Nullable S>) result;
      }
    
      @Override
      @SuppressWarnings("unchecked") // TODO(kevinb): the right way to explain this??
      public <S extends Comparable<?>> Ordering<S> reverse() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 01:34:19 GMT 2026
    - 3K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/NullsFirstOrdering.java

    import org.jspecify.annotations.Nullable;
    
    /** An ordering that treats {@code null} as less than all other values. */
    @GwtCompatible
    final class NullsFirstOrdering<T extends @Nullable Object> extends Ordering<@Nullable T>
        implements Serializable {
      final Ordering<? super T> ordering;
    
      NullsFirstOrdering(Ordering<? super T> ordering) {
        this.ordering = ordering;
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/NaturalOrdering.java

        Ordering<@Nullable Comparable<?>> result = nullsLast;
        if (result == null) {
          result = nullsLast = super.<Comparable<?>>nullsLast();
        }
        return (Ordering<@Nullable S>) result;
      }
    
      @Override
      @SuppressWarnings("unchecked") // TODO(kevinb): the right way to explain this??
      public <S extends Comparable<?>> Ordering<S> reverse() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 01:34:19 GMT 2026
    - 3K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/GeneralRangeTest.java

          GeneralRange<@Nullable Integer> range = GeneralRange.downTo(ORDERING, 3, lBoundType);
          for (Integer i : IN_ORDER_VALUES) {
            assertEquals(
                ORDERING.compare(i, 3) > 0 || (ORDERING.compare(i, 3) == 0 && lBoundType == CLOSED),
                range.contains(i));
            assertEquals(
                ORDERING.compare(i, 3) < 0 || (ORDERING.compare(i, 3) == 0 && lBoundType == OPEN),
                range.tooLow(i));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/graph/ElementOrder.java

      /**
       * The type of ordering that this object specifies.
       *
       * <ul>
       *   <li>UNORDERED: no order is guaranteed.
       *   <li>STABLE: ordering is guaranteed to follow a pattern that won't change between releases.
       *       Some methods may have stronger guarantees.
       *   <li>INSERTION: insertion ordering is guaranteed.
       *   <li>SORTED: ordering according to a supplied comparator is guaranteed.
       * </ul>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/ByFunctionOrdering.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * An ordering that orders elements by applying an order to the result of a function on those
     * elements.
     */
    @GwtCompatible
    final class ByFunctionOrdering<F extends @Nullable Object, T extends @Nullable Object>
        extends Ordering<F> implements Serializable {
      final Function<F, ? extends T> function;
      final Ordering<T> ordering;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/TreeMultimap.java

     * according to the key comparator ordering or the natural ordering of the keys. Similarly, {@code
     * get}, {@code removeAll}, and {@code replaceValues} return collections that iterate through the
     * values according to the value comparator ordering or the natural ordering of the values. The
     * collections generated by {@code entries}, {@code keys}, and {@code values} iterate across the
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 8.5K bytes
    - Click Count (0)
Back to Top