Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 2,210 for nulls (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava-testlib/test/com/google/common/testing/PackageSanityTests.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.testing;
    
    import org.jspecify.annotations.NullUnmarked;
    
    /** Test nulls for the entire package. */
    
    @NullUnmarked
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 812 bytes
    - Click Count (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/TestContainerGenerator.java

       * array of the erased type.
       */
      T create(Object... elements);
    
      /**
       * Helper method to create an array of the appropriate type used by this generator. The returned
       * array will contain only nulls.
       */
      E[] createArray(int length);
    
      /**
       * Returns the iteration ordering of elements, given the order in which they were added to the
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/reflect/PackageSanityTests.java

     * limitations under the License.
     */
    
    package com.google.common.reflect;
    
    import com.google.common.testing.AbstractPackageSanityTests;
    import org.jspecify.annotations.NullUnmarked;
    
    /** Tests nulls for the entire package. */
    
    @NullUnmarked
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 874 bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/reflect/Parameter.java

        return getAnnotation(annotationType) != null;
      }
    
      @Override
      public <A extends Annotation> @Nullable A getAnnotation(Class<A> annotationType) {
        checkNotNull(annotationType);
        for (Annotation annotation : annotations) {
          if (annotationType.isInstance(annotation)) {
            return annotationType.cast(annotation);
          }
        }
        return null;
      }
    
      @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Jan 18 02:54:30 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  5. guava-testlib/test/com/google/common/testing/PackageSanityTests.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.testing;
    
    import org.jspecify.annotations.NullUnmarked;
    
    /** Test nulls for the entire package. */
    
    @NullUnmarked
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 812 bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/AllEqualOrdering.java

    import com.google.common.annotations.J2ktIncompatible;
    import java.io.Serializable;
    import java.util.List;
    import org.jspecify.annotations.Nullable;
    
    /**
     * An ordering that treats all references as equals, even nulls.
     *
     * @author Emily Soldal
     */
    @GwtCompatible
    final class AllEqualOrdering extends Ordering<@Nullable Object> implements Serializable {
      static final AllEqualOrdering INSTANCE = new AllEqualOrdering();
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  7. guava-testlib/src/com/google/common/collect/testing/TestContainerGenerator.java

       * array of the erased type.
       */
      T create(Object... elements);
    
      /**
       * Helper method to create an array of the appropriate type used by this generator. The returned
       * array will contain only nulls.
       */
      E[] createArray(int length);
    
      /**
       * Returns the iteration ordering of elements, given the order in which they were added to the
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/reflect/TypeVisitor.java

      /**
       * Visits the given types. Null types are ignored. This allows subclasses to call {@code
       * visit(parameterizedType.getOwnerType())} safely without having to check nulls.
       */
      public final void visit(@Nullable Type... types) {
        for (Type type : types) {
          if (type == null || !visited.add(type)) {
            // null owner type, or already visited;
            continue;
          }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java

          for (Object element : contents) {
            if (element == null) {
              throw new NullPointerException();
            }
          }
        }
      }
    
      @Override
      public int size() {
        return contents.length;
      }
    
      @Override
      public boolean contains(@Nullable Object object) {
        if (!allowNulls) {
          // behave badly
          if (object == null) {
            throw new NullPointerException();
          }
        }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3.8K bytes
    - Click Count (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddTester.java

        assertTrue("add(null) should return true", collection.add(null));
        expectAdded((E) null);
      }
    
      @CollectionFeature.Require(value = SUPPORTS_ADD, absent = ALLOWS_NULL_VALUES)
      public void testAdd_nullUnsupported() {
        assertThrows(NullPointerException.class, () -> collection.add(null));
        expectUnchanged();
        expectNullMissingWhenNullUnsupported("Should not contain null after unsupported add(null)");
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6K bytes
    - Click Count (0)
Back to Top