Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 836 for isEmpty (0.05 sec)

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

            try {
              Integer first = filtered.first();
              assertFalse(filtered.isEmpty());
              assertEquals(Ordering.natural().min(filtered), first);
            } catch (NoSuchElementException e) {
              assertTrue(filtered.isEmpty());
            }
          }
        }
    
        public void testLast() {
          for (List<Integer> contents : SAMPLE_INPUTS) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/AbstractMultimap.java

     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    abstract class AbstractMultimap<K extends @Nullable Object, V extends @Nullable Object>
        implements Multimap<K, V> {
      @Override
      public boolean isEmpty() {
        return size() == 0;
      }
    
      @Override
      public boolean containsValue(@CheckForNull Object value) {
        for (Collection<V> collection : asMap().values()) {
          if (collection.contains(value)) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 6.6K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/concurrent/TaskRunnerRealBackendTest.kt

     * limitations under the License.
     */
    package okhttp3.internal.concurrent
    
    import assertk.assertThat
    import assertk.assertions.isCloseTo
    import assertk.assertions.isEmpty
    import assertk.assertions.isEqualTo
    import assertk.assertions.isTrue
    import java.lang.Thread.UncaughtExceptionHandler
    import java.util.concurrent.LinkedBlockingDeque
    import java.util.concurrent.ThreadFactory
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

      }
    
      public void testIsEmpty() {
        assertThat(ImmutableIntArray.of().isEmpty()).isTrue();
        assertThat(ImmutableIntArray.of(0).isEmpty()).isFalse();
        assertThat(ImmutableIntArray.of(0, 1, 3).isEmpty()).isFalse();
        assertThat(ImmutableIntArray.of(0, 1, 3).subArray(1, 1).isEmpty()).isTrue();
        assertThat(ImmutableIntArray.of(0, 1, 3).subArray(1, 2).isEmpty()).isFalse();
      }
    
      public void testGet_good() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/Helpers.java

        return singletonMap(key, value).entrySet().iterator().next();
      }
    
      private static boolean isEmpty(Iterable<?> iterable) {
        return iterable instanceof Collection
            ? ((Collection<?>) iterable).isEmpty()
            : !iterable.iterator().hasNext();
      }
    
      public static void assertEmpty(Iterable<?> iterable) {
        if (!isEmpty(iterable)) {
          fail("Not true that " + iterable + " is empty");
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

      public void testIsEmpty() {
        assertThat(ImmutableDoubleArray.of().isEmpty()).isTrue();
        assertThat(ImmutableDoubleArray.of(0).isEmpty()).isFalse();
        assertThat(ImmutableDoubleArray.of(0, 1, 3).isEmpty()).isFalse();
        assertThat(ImmutableDoubleArray.of(0, 1, 3).subArray(1, 1).isEmpty()).isTrue();
        assertThat(ImmutableDoubleArray.of(0, 1, 3).subArray(1, 2).isEmpty()).isFalse();
      }
    
      public void testGet_good() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java

            if (repo != null) {
                String id = repo.getId();
    
                if (id == null || id.isEmpty()) {
                    throw new InvalidRepositoryException("Repository identifier missing", "");
                }
    
                String url = repo.getUrl();
    
                if (url == null || url.isEmpty()) {
                    throw new InvalidRepositoryException("URL missing for repository " + id, id);
                }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        Collection<V> valueCollection = map.values();
        Set<Entry<K, V>> entrySet = map.entrySet();
    
        assertEquals(map.size() == 0, map.isEmpty());
        assertEquals(map.size(), keySet.size());
        assertEquals(keySet.size() == 0, keySet.isEmpty());
        assertEquals(!keySet.isEmpty(), keySet.iterator().hasNext());
    
        int expectedKeySetHash = 0;
        for (K key : keySet) {
          V value = map.get(key);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/convert/ShortConversionUtil.java

                return ((Boolean) o) ? (short) 1 : (short) 0;
            } else {
                return toShort(o.toString());
            }
        }
    
        private static Short toShort(final String s) {
            if (StringUtil.isEmpty(s)) {
                return null;
            }
            return Short.valueOf(DecimalFormatUtil.normalize(s));
        }
    
        /**
         * {@literal short}に変換します。
         *
         * @param o
         *            変換元のオブジェクト
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultClasspathTransformation.java

                throws MetadataGraphTransformationException {
            try {
                if (dirtyGraph == null || dirtyGraph.isEmpty()) {
                    return null;
                }
    
                MetadataGraph cleanGraph = conflictResolver.resolveConflicts(dirtyGraph, scope);
    
                if (cleanGraph == null || cleanGraph.isEmpty()) {
                    return null;
                }
    
                ClasspathContainer cpc = new ClasspathContainer(scope);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top