Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ComparableType (0.04 sec)

  1. guava-tests/test/com/google/common/graph/ElementOrderTest.java

          this.value = checkNotNull(value);
        }
    
        @Override
        public String toString() {
          return "value=" + value;
        }
      }
    
      @SuppressWarnings("ComparableType")
      private static class ComparableSubClass extends NonComparableSuperClass
          implements Comparable<NonComparableSuperClass> {
    
        ComparableSubClass(Integer value) {
          super(value);
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/LegacyComparable.java

     * types, though their use may still require an explicit type parameter and/or warning suppression.
     *
     * @author Kevin Bourrillion
     */
    @SuppressWarnings({"ComparableType", "rawtypes"}) // https://github.com/google/guava/issues/989
    @GwtCompatible
    @NullMarked
    class LegacyComparable implements Comparable, Serializable {
      static final LegacyComparable X = new LegacyComparable("x");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

      }
    
      // Compare by toString() to satisfy 2 properties:
      // 1. compareTo(null) should throw NullPointerException
      // 2. the order is deterministic and easy to understand, for debugging purpose.
      @SuppressWarnings("ComparableType")
      private static final class ByToString implements Comparable<Object>, Serializable {
        private static final ByToString INSTANCE = new ByToString();
    
        @Override
        public int compareTo(Object o) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

      }
    
      // Compare by toString() to satisfy 2 properties:
      // 1. compareTo(null) should throw NullPointerException
      // 2. the order is deterministic and easy to understand, for debugging purpose.
      @SuppressWarnings("ComparableType")
      private static final class ByToString implements Comparable<Object>, Serializable {
        private static final ByToString INSTANCE = new ByToString();
    
        @Override
        public int compareTo(Object o) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 20.9K bytes
    - Viewed (0)
Back to top