Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 40 for isEmpty (0.25 sec)

  1. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

            return !isEmpty(collection);
        }
    
        /**
         * {@link Map}が{@literal null}または要素が無い場合は{@literal true}を返します。
         *
         * @param map
         *            マップ
         * @return マップが{@literal null}または要素が無い場合は{@literal true}
         */
        public static boolean isEmpty(final Map<?, ?> map) {
            return map == null || map.isEmpty();
        }
    
        /**
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/SetsTest.java

        TreeSet<Derived> set = Sets.newTreeSet();
        assertTrue(set.isEmpty());
        set.add(new Derived("foo"));
        set.add(new Derived("bar"));
        assertThat(set).containsExactly(new Derived("bar"), new Derived("foo")).inOrder();
      }
    
      public void testNewTreeSetEmptyNonGeneric() {
        TreeSet<LegacyComparable> set = Sets.newTreeSet();
        assertTrue(set.isEmpty());
        set.add(new LegacyComparable("foo"));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 49.2K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/project/MavenProject.java

        // ----------------------------------------------------------------------
    
        private void addPath(List<String> paths, String path) {
            if (path != null) {
                path = path.trim();
                if (!path.isEmpty()) {
                    File file = new File(path);
                    if (file.isAbsolute()) {
                        path = file.getAbsolutePath();
                    } else if (".".equals(path)) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Mar 01 17:18:13 UTC 2024
    - 56.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MapsTest.java

      }
    
      public void testAsMapEmpty() {
        Set<String> strings = ImmutableSet.of();
        Map<String, Integer> map = Maps.asMap(strings, LENGTH_FUNCTION);
        assertThat(map.entrySet()).isEmpty();
        assertTrue(map.isEmpty());
        assertNull(map.get("five"));
      }
    
      private static class NonNavigableSortedSet extends ForwardingSortedSet<String> {
        private final SortedSet<String> delegate = Sets.newTreeSet();
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 67.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/MapMakerInternalMap.java

          return new KeyIterator();
        }
    
        @Override
        public int size() {
          return MapMakerInternalMap.this.size();
        }
    
        @Override
        public boolean isEmpty() {
          return MapMakerInternalMap.this.isEmpty();
        }
    
        @Override
        public boolean contains(Object o) {
          return MapMakerInternalMap.this.containsKey(o);
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

                buf.append(",\"related_contents\":");
                buf.append(escapeJson(relatedContents));
                buf.append(',');
                buf.append("\"data\":[");
                if (!documentItems.isEmpty()) {
                    boolean first1 = true;
                    for (final Map<String, Object> document : documentItems) {
                        if (!first1) {
                            buf.append(',');
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 02:17:23 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableSortedMap.java

        return keyOrNull(higherEntry(key));
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> firstEntry() {
        return isEmpty() ? null : entrySet().asList().get(0);
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> lastEntry() {
        return isEmpty() ? null : entrySet().asList().get(size() - 1);
      }
    
      /**
       * Guaranteed to throw an exception and leave the map unmodified.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

          return new KeyIterator();
        }
    
        @Override
        public int size() {
          return MapMakerInternalMap.this.size();
        }
    
        @Override
        public boolean isEmpty() {
          return MapMakerInternalMap.this.isEmpty();
        }
    
        @Override
        public boolean contains(Object o) {
          return MapMakerInternalMap.this.containsKey(o);
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

        return keyOrNull(higherEntry(key));
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> firstEntry() {
        return isEmpty() ? null : entrySet().asList().get(0);
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> lastEntry() {
        return isEmpty() ? null : entrySet().asList().get(size() - 1);
      }
    
      /**
       * Guaranteed to throw an exception and leave the map unmodified.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 53K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/GradleResolveVisitor.java

                    return pe;
                }
                stack.addFirst(it);
            }
            if (found == null) {
                return pe;
            }
    
            if (stack.isEmpty()) {
                return pe;
            }
            Object stackElement = stack.removeFirst();
            if (!(stackElement.getClass() == PropertyExpression.class)) {
                return pe;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 67.6K bytes
    - Viewed (0)
Back to top