Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 838 for useEmpty (0.16 sec)

  1. guava/src/com/google/common/collect/ImmutableAsList.java

        return delegateCollection().contains(target);
      }
    
      @Override
      public int size() {
        return delegateCollection().size();
      }
    
      @Override
      public boolean isEmpty() {
        return delegateCollection().isEmpty();
      }
    
      @Override
      boolean isPartialView() {
        return delegateCollection().isPartialView();
      }
    
      /** Serialized form that leads to the same performance as the original list. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/AbstractRangeSetTest.java

        assertEquals(rangeSet.asRanges().isEmpty(), rangeSet.isEmpty());
        assertEquals(rangeSet.asDescendingSetOfRanges().isEmpty(), rangeSet.isEmpty());
        assertEquals(!rangeSet.asRanges().iterator().hasNext(), rangeSet.isEmpty());
        assertEquals(!rangeSet.asDescendingSetOfRanges().iterator().hasNext(), rangeSet.isEmpty());
    
        List<Range<C>> asRanges = ImmutableList.copyOf(rangeSet.asRanges());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/testing/TestLogHandlerTest.java

                ExampleClassUnderTest.logger.removeHandler(handler);
              }
            });
      }
    
      public void test() throws Exception {
        assertTrue(handler.getStoredLogRecords().isEmpty());
        ExampleClassUnderTest.foo();
        LogRecord record = handler.getStoredLogRecords().get(0);
        assertEquals(Level.INFO, record.getLevel());
        assertEquals("message", record.getMessage());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.8K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/VersionRangeResolverResult.java

        @Nonnull
        default Optional<Version> getLowerVersion() {
            return getVersions().isEmpty()
                    ? Optional.empty()
                    : Optional.of(getVersions().get(0));
        }
    
        @Nonnull
        default Optional<Version> getHigherVersion() {
            return getVersions().isEmpty()
                    ? Optional.empty()
                    : Optional.of(getVersions().get(getVersions().size() - 1));
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Feb 28 23:54:53 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/collect/testing/features/FeatureUtilTest.java

        assertThat(requirements.getPresentFeatures()).isEmpty();
        assertThat(requirements.getAbsentFeatures()).isEmpty();
      }
    
      public void testBuildTesterRequirements_class_empty() throws Exception {
        @Require
        class Tester {}
    
        TesterRequirements requirements = buildTesterRequirements(Tester.class);
    
        assertThat(requirements.getPresentFeatures()).isEmpty();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 05 22:05:05 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/LocalCacheTest.java

            map.put(keyOne, valueOne);
            assertTrue(segment.recencyQueue.isEmpty());
    
            for (int i = 0; i < DRAIN_THRESHOLD / 2; i++) {
              map.get(keyOne);
            }
            assertFalse(segment.recencyQueue.isEmpty());
    
            map.put(keyTwo, valueTwo);
            assertTrue(segment.recencyQueue.isEmpty());
          }
        }
      }
    
      public void testDrainRecencyQueueOnRead() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

                // The file pom may not contain the modelVersion yet, as it may be set later by the
                // ModelVersionXMLFilter.
                if (m.getModelVersion() != null && !m.getModelVersion().isEmpty()) {
                    validateModelVersion(problems, m.getModelVersion(), m, VALID_MODEL_VERSIONS);
                }
    
                validateStringNoExpression("groupId", problems, Severity.WARNING, Version.V20, m.getGroupId(), m);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 77.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

            map.put(keyOne, valueOne);
            assertTrue(segment.recencyQueue.isEmpty());
    
            for (int i = 0; i < DRAIN_THRESHOLD / 2; i++) {
              map.get(keyOne);
            }
            assertFalse(segment.recencyQueue.isEmpty());
    
            map.put(keyTwo, valueTwo);
            assertTrue(segment.recencyQueue.isEmpty());
          }
        }
      }
    
      public void testDrainRecencyQueueOnRead() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java

        private String join(String message1, String message2) {
            String message = "";
    
            if (message1 != null && !message1.isEmpty()) {
                message = message1.trim();
            }
    
            if (message2 != null && !message2.isEmpty()) {
                if (message != null && !message.isEmpty()) {
                    if (message.endsWith(".") || message.endsWith("!") || message.endsWith(":")) {
                        message += " ";
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/TreeRangeMap.java

                return Iterators.size(iterator());
              }
    
              @Override
              public boolean isEmpty() {
                return !iterator().hasNext();
              }
            };
          }
    
          Iterator<Entry<Range<K>, V>> entryIterator() {
            if (subRange.isEmpty()) {
              return emptyIterator();
            }
            Cut<K> cutToStart =
                MoreObjects.firstNonNull(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.9K bytes
    - Viewed (0)
Back to top