Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for NotNull (0.17 sec)

  1. android/guava-tests/test/com/google/common/base/PredicatesTest.java

      }
    
      public void testNotNull_apply() {
        Predicate<@Nullable Integer> notNull = Predicates.notNull();
        assertFalse(notNull.apply(null));
        assertTrue(notNull.apply(1));
      }
    
      public void testNotNull_equality() {
        new EqualsTester()
            .addEqualityGroup(Predicates.notNull(), Predicates.notNull())
            .addEqualityGroup(Predicates.isNull())
            .testEquals();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Predicates.java

            return "Predicates.isNull()";
          }
        },
        /** @see Predicates#notNull() */
        NOT_NULL {
          @Override
          public boolean apply(@CheckForNull Object o) {
            return o != null;
          }
    
          @Override
          public String toString() {
            return "Predicates.notNull()";
          }
        };
    
        @SuppressWarnings("unchecked") // safe contravariant cast
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/MoreObjects.java

       * throws a {@link NullPointerException}.
       *
       * <p>To find the first non-null element in an iterable, use {@code Iterables.find(iterable,
       * Predicates.notNull())}. For varargs, use {@code Iterables.find(Arrays.asList(a, b, c, ...),
       * Predicates.notNull())}, static importing as necessary.
       *
       * <p><b>Note:</b> if {@code first} is represented as an {@link Optional}, this can be
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 15.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/MoreObjects.java

       * throws a {@link NullPointerException}.
       *
       * <p>To find the first non-null element in an iterable, use {@code Iterables.find(iterable,
       * Predicates.notNull())}. For varargs, use {@code Iterables.find(Arrays.asList(a, b, c, ...),
       * Predicates.notNull())}, static importing as necessary.
       *
       * <p><b>Note:</b> if {@code first} is represented as an {@link Optional}, this can be
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 15.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/PredicatesTest.java

      }
    
      public void testNotNull_apply() {
        Predicate<@Nullable Integer> notNull = Predicates.notNull();
        assertFalse(notNull.apply(null));
        assertTrue(notNull.apply(1));
      }
    
      public void testNotNull_equality() {
        new EqualsTester()
            .addEqualityGroup(Predicates.notNull(), Predicates.notNull())
            .addEqualityGroup(Predicates.isNull())
            .testEquals();
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Predicates.java

            return "Predicates.isNull()";
          }
        },
        /** @see Predicates#notNull() */
        NOT_NULL {
          @Override
          public boolean apply(@CheckForNull Object o) {
            return o != null;
          }
    
          @Override
          public String toString() {
            return "Predicates.notNull()";
          }
        };
    
        @SuppressWarnings("unchecked") // safe contravariant cast
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
Back to top