Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 301 - 310 of 996 for useEmpty (0.07 seconds)

  1. android/guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

      }
    
      public void testIsEmpty() {
        assertThat(ImmutableLongArray.of().isEmpty()).isTrue();
        assertThat(ImmutableLongArray.of(0).isEmpty()).isFalse();
        assertThat(ImmutableLongArray.of(0, 1, 3).isEmpty()).isFalse();
        assertThat(ImmutableLongArray.of(0, 1, 3).subArray(1, 1).isEmpty()).isTrue();
        assertThat(ImmutableLongArray.of(0, 1, 3).subArray(1, 2).isEmpty()).isFalse();
      }
    
      public void testGet_good() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 20.5K bytes
    - Click Count (0)
  2. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

        this.ticker = firstNonNull(builder.ticker, Ticker.systemTicker());
      }
    
      @Override
      public int size() {
        return cachingHashMap.size();
      }
    
      @Override
      public boolean isEmpty() {
        return cachingHashMap.isEmpty();
      }
    
      @Override
      public V get(Object key) {
        checkNotNull(key);
        Timestamped<V> value = cachingHashMap.get(key);
    
        if (value == null) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 21.8K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/execution/ReactorManager.java

            if (!blackList.contains(id)) {
                blackList.add(id);
    
                List<String> dependents = sorter.getDependents(id);
    
                if (dependents != null && !dependents.isEmpty()) {
                    for (String dependentId : dependents) {
                        if (!buildSuccessesByProject.containsKey(dependentId)
                                && !buildFailuresByProject.containsKey(dependentId)) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Dec 12 11:02:17 GMT 2024
    - 6K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/core/lang/StringUtilTest.java

        }
    
        /**
         *
         */
        @Test
        public void testIsEmpty() {
            assertTrue(StringUtil.isEmpty(null));
            assertTrue(StringUtil.isEmpty(""));
            assertFalse(StringUtil.isEmpty(" "));
        }
    
        /**
         *
         */
        @Test
        public void testIsNotEmpty() {
            assertFalse(StringUtil.isNotEmpty(null));
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/SIDTest.java

            }
    
            @Test
            @DisplayName("isEmpty and isBlank edge cases")
            void testEmptyAndBlank() throws Exception {
                // No subauthorities
                SID s1 = new SID("S-1-5");
                assertTrue(s1.isEmpty());
                // isBlank will fail if sub_authority is null, so we skip that check for s1
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/collect/EnumHashBiMapTest.java

        bimap = EnumHashBiMap.create(emptyBimap);
        assertTrue(bimap.isEmpty());
    
        /* Map can be empty if it's an EnumBiMap. */
        Map<Currency, Country> emptyBimap2 = EnumBiMap.create(Currency.class, Country.class);
        EnumHashBiMap<Currency, Country> bimap2 = EnumHashBiMap.create(emptyBimap2);
        assertTrue(bimap2.isEmpty());
      }
    
      public void testEnumHashBiMapConstructor() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/indexer/DocBoostMatcher.java

         * @return true if the document matches the expression, false otherwise
         */
        public boolean match(final Map<String, Object> map) {
    
            if (map == null || map.isEmpty() || matchExpression == null) {
                return false;
            }
    
            final Object value = ComponentUtil.getScriptEngineFactory().getScriptEngine(scriptType).evaluate(matchExpression, map);
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

          Key key = new Key(1);
          String value = key.toString();
          assertThat(cache.getUnchecked(key)).isSameInstanceAs(value);
          assertThat(cache.asMap().isEmpty()).isFalse();
          cache.invalidateAll();
          assertThat(cache.size()).isEqualTo(0);
          assertThat(cache.asMap().isEmpty()).isTrue();
          assertThat(cache.asMap().containsKey(key)).isFalse();
          assertThat(cache.asMap().containsValue(value)).isFalse();
        }
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/core/beans/converter/NumberConverter.java

            assertArgumentNotEmpty("pattern", pattern);
            this.pattern = pattern;
        }
    
        @Override
        public Object getAsObject(final String value) {
            if (StringUtil.isEmpty(value)) {
                return null;
            }
            try {
                return new DecimalFormat(pattern).parse(value);
            } catch (final ParseException e) {
                throw new ParseRuntimeException(e);
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

      }
    
      /** Returns an immutable array containing the given values, in order. */
      public static ImmutableLongArray copyOf(Collection<Long> values) {
        return values.isEmpty() ? EMPTY : new ImmutableLongArray(Longs.toArray(values));
      }
    
      /**
       * Returns an immutable array containing the given values, in order.
       *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Dec 12 14:49:24 GMT 2025
    - 22K bytes
    - Click Count (0)
Back to Top