Search Options

Results per page
Sort
Preferred Languages
Advance

Results 731 - 740 of 836 for IsEmpty (0.1 sec)

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

        List<Object> buf = newArrayList();
        int elements = Queues.drain(q, buf, -1, MAX_VALUE, NANOSECONDS);
        assertEquals(0, elements);
        assertThat(buf).isEmpty();
    
        // Free the producer thread, and give subsequent tests a clean slate.
        q.take();
      }
    
      public void testDrain_throws() throws Exception {
        for (BlockingQueue<Object> q : blockingQueues()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ForwardingMultiset.java

       * {@link ForwardingMultiset#clear}, {@link ForwardingMultiset#contains}, {@link
       * ForwardingMultiset#containsAll}, {@link ForwardingMultiset#count}, {@link
       * ForwardingMultiset#isEmpty}, the {@link Set#size} and {@link Set#iterator} methods of {@link
       * ForwardingMultiset#entrySet}, and {@link ForwardingMultiset#remove(Object, int)}. In many
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  3. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

                            break;
                        }
                        queryLogs.add(queryLog);
                        queryLog = queryLogReader.read();
                        if (queryLog == null && !queryLogs.isEmpty() || queryLogs.size() >= docPerReq) {
                            final SuggestIndexResponse res = indexFromQueryLog(queryLogs.toArray(new QueryLog[queryLogs.size()]));
                            errors.addAll(res.getErrors());
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

          }
        },
        ArrayTableImpl {
          @Override
          <R extends Comparable<R>, C extends Comparable<C>, V> Table<R, C, V> create(
              Table<R, C, V> contents) {
            if (contents.isEmpty()) {
              return ImmutableTable.of();
            } else {
              return ArrayTable.create(contents);
            }
          }
        },
        ImmutableTableImpl {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/Closer.java

       */
      @Override
      public void close() throws IOException {
        Throwable throwable = thrown;
    
        // close closeables in LIFO order
        while (!stack.isEmpty()) {
          Closeable closeable = stack.removeFirst();
          try {
            closeable.close();
          } catch (Throwable e) {
            if (throwable == null) {
              throwable = e;
            } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/GcFinalization.java

     * <pre>{@code
     * final WeakHashMap<Object, Object> map = new WeakHashMap<>();
     * map.put(new Object(), Boolean.TRUE);
     * GcFinalization.awaitDone(new FinalizationPredicate() {
     *   public boolean isDone() {
     *     return map.isEmpty();
     *   }
     * });
     * }</pre>
     *
     * <p>Even if your non-test code does not use finalization, you can use this class to test for
     * leaks, by ensuring that objects are no longer strongly referenced:
     *
     * <pre>{@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/TreeMultisetTest.java

        assertThat(subset).containsExactly("b", "c", "d", "e").inOrder();
    
        subset.clear();
        assertThat(elementSet).containsExactly("a", "f").inOrder();
        assertThat(subset).isEmpty();
        assertEquals(3, ms.size());
      }
    
      public void testCustomComparator() throws Exception {
        Comparator<String> comparator =
            new Comparator<String>() {
              @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/JavaPathType.java

            joiner.setEmptyValue("");
            for (Path p : paths) {
                joiner.add(p.toString());
            }
            String value = joiner.toString();
            if (value.isEmpty()) {
                return new String[0];
            }
            return new String[] {option, value};
        }
    
        /**
         * {@return a string representation of this path type for debugging purposes}.
         */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Mon May 13 09:53:45 UTC 2024
    - 15K bytes
    - Viewed (0)
  10. internal/event/target/elasticsearch.go

    	Password   string          `json:"password"`
    }
    
    // Validate ElasticsearchArgs fields
    func (a ElasticsearchArgs) Validate() error {
    	if !a.Enable {
    		return nil
    	}
    	if a.URL.IsEmpty() {
    		return errors.New("empty URL")
    	}
    	if a.Format != "" {
    		f := strings.ToLower(a.Format)
    		if f != event.NamespaceFormat && f != event.AccessFormat {
    			return errors.New("format value unrecognized")
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top