Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for nulla (0.24 sec)

  1. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        List<@Nullable String> list = newArrayList("a", null, "b", null, "a", null);
        assertEquals(2, Iterators.frequency(list.iterator(), "a"));
        assertEquals(1, Iterators.frequency(list.iterator(), "b"));
        assertEquals(0, Iterators.frequency(list.iterator(), "c"));
        assertEquals(0, Iterators.frequency(list.iterator(), 4.2));
        assertEquals(3, Iterators.frequency(list.iterator(), null));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Synchronized.java

          synchronized (mutex) {
            Collection<V> collection = super.get(key);
            return (collection == null) ? null : typePreservingCollection(collection, mutex);
          }
        }
    
        @Override
        public Set<Map.Entry<K, Collection<V>>> entrySet() {
          synchronized (mutex) {
            if (asMapEntrySet == null) {
              asMapEntrySet = new SynchronizedAsMapEntries<>(delegate().entrySet(), mutex);
            }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Iterators.java

        @CheckForNull
        private Iterator<? extends Iterator<? extends T>> getTopMetaIterator() {
          while (topMetaIterator == null || !topMetaIterator.hasNext()) {
            if (metaIterators != null && !metaIterators.isEmpty()) {
              topMetaIterator = metaIterators.removeFirst();
            } else {
              return null;
            }
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

       *
       * @throws NullPointerException if any key or value in {@code map} is null
       */
      @SuppressWarnings("unchecked")
      public static <K, V> ImmutableSortedMap<K, V> copyOfSorted(SortedMap<K, ? extends V> map) {
        Comparator<? super K> comparator = map.comparator();
        if (comparator == null) {
          // If map has a null comparator, the keys should have a natural ordering,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/IteratorsTest.java

        List<@Nullable String> list = newArrayList("a", null, "b", null, "a", null);
        assertEquals(2, Iterators.frequency(list.iterator(), "a"));
        assertEquals(1, Iterators.frequency(list.iterator(), "b"));
        assertEquals(0, Iterators.frequency(list.iterator(), "c"));
        assertEquals(0, Iterators.frequency(list.iterator(), 4.2));
        assertEquals(3, Iterators.frequency(list.iterator(), null));
      }
    
      @GwtIncompatible // slow (~4s)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/SetsTest.java

                      }
                    })
                .named("Sets.filter, no nulls")
                .withFeatures(
                    CollectionFeature.SUPPORTS_ADD,
                    CollectionFeature.SUPPORTS_REMOVE,
                    CollectionFeature.KNOWN_ORDER,
                    CollectionSize.ANY,
                    CollectionFeature.ALLOWS_NULL_QUERIES)
                .createTestSuite());
        suite.addTest(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java

            String groupId = model.getGroupId();
            if (groupId == null && model.getParent() != null) {
                groupId = model.getParent().getGroupId();
            }
            return groupId;
        }
    
        private String getVersion(Model model) {
            String version = model.getVersion();
            if (version == null && model.getParent() != null) {
                version = model.getParent().getVersion();
            }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri May 03 08:48:38 GMT 2024
    - 61.5K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/project/MavenProject.java

         * used by plugins.
         *
         * @param artifacts The set of artifacts, may be {@code null}.
         */
        public void setResolvedArtifacts(Set<Artifact> artifacts) {
            this.resolvedArtifacts = (artifacts != null) ? artifacts : Collections.<Artifact>emptySet();
            this.artifacts = null;
            this.artifactMap = null;
        }
    
        /**
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 56.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

          if (entry.getKey() == null) {
            tryDrainReferenceQueues();
            return null;
          }
          V value = entry.getValue();
          if (value == null) {
            tryDrainReferenceQueues();
            return null;
          }
    
          return value;
        }
    
        /**
         * Performs routine cleanup following a read. Normally cleanup happens during writes, or from
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java

                            prefix + prefix2 + "(groupId:artifactId)",
                            null,
                            "groupId of a plugin must be defined. ",
                            plugin);
                }
    
                if (plugin.getArtifactId() == null
                        || (plugin.getArtifactId() != null
                                && plugin.getArtifactId().trim().isEmpty())) {
                    addViolation(
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 13:13:07 GMT 2024
    - 73.1K bytes
    - Viewed (0)
Back to top