Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 266 for findAny (0.33 sec)

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

       * iterable is empty, {@code Optional.absent()} is returned.
       *
       * <p><b>{@code Stream} equivalent:</b> if the goal is to obtain any element, {@link
       * Stream#findAny}; if it must specifically be the <i>first</i> element, {@code Stream#findFirst}.
       *
       * @throws NullPointerException if the first element is null; if this is a possibility, use {@code
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 30 00:14:39 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Streams.java

       * href="http://gee.cs.oswego.edu/dl/html/StreamParallelGuidance.html">efficiently splittable</a>
       * streams.
       *
       * <p>If the stream has nondeterministic order, this has equivalent semantics to {@link
       * Stream#findAny} (which you might as well use).
       *
       * @see Stream#findFirst()
       * @throws NullPointerException if the last element of the stream is null
       */
      /*
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 36.5K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                            .flatMap(r -> r.getProblems().stream())
                            .filter(p -> p.getException() instanceof CycleDetectedException)
                            .findAny()
                            .orElse(null);
                    if (cycle != null) {
                        throw new RuntimeException(new ProjectCycleException(
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon May 13 16:34:29 UTC 2024
    - 57.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Iterables.java

       * iterator whether it has any elements <i>remaining</i> (which one does using {@link
       * Iterator#hasNext}).
       *
       * <p><b>{@code Stream} equivalent:</b> {@code !stream.findAny().isPresent()}
       *
       * @return {@code true} if the iterable contains no elements
       */
      public static boolean isEmpty(Iterable<?> iterable) {
        if (iterable instanceof Collection) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 42.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Iterables.java

       * iterator whether it has any elements <i>remaining</i> (which one does using {@link
       * Iterator#hasNext}).
       *
       * <p><b>{@code Stream} equivalent:</b> {@code !stream.findAny().isPresent()}
       *
       * @return {@code true} if the iterable contains no elements
       */
      public static boolean isEmpty(Iterable<?> iterable) {
        if (iterable instanceof Collection) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 42.8K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/mod_tidy_convergence_loop.txt

    # because it cannot resolve x, y, and z simultaneously.
    ! go mod tidy
    
    cmp go.mod go.mod.orig
    
    stderr '^go: finding module for package example\.net/w$'
    stderr '^go: finding module for package example\.net/x$'
    stderr -count=2 '^go: finding module for package example\.net/y$'
    stderr -count=2 '^go: finding module for package example\.net/z$'
    stderr '^go: found example\.net/x in example\.net/x v0.1.0$'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/mod_gobuild_import.txt

    exec $WORK/testimport$GOEXE gobuild.example.com/x/y/z/w .
    stdout w1.go
    cd w
    exec $WORK/testimport$GOEXE gobuild.example.com/x/y/z/w ..
    stdout w1.go
    
    # go/build's Import in FindOnly mode should find directories by invoking the go command
    #
    # Calling build.Import in build.FindOnly mode on an import path of a Go package
    # that produces errors when loading (e.g., due to build constraints not matching
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:18:16 UTC 2022
    - 3K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/mod_load_badchain.txt

    -- list-missing-expected --
    go: finding module for package example.com/badchain/c
    go: found example.com/badchain/c in example.com/badchain/c v1.1.0
    go: m/use imports
    	example.com/badchain/c: example.com/badchain/c@v1.1.0: parsing go.mod:
    	module declares its path as: badchain.example.com/c
    	        but was required as: example.com/badchain/c
    -- list-missing-test-expected --
    go: finding module for package example.com/badchain/c
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 13:05:03 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. src/log/slog/value_access_benchmark_test.go

    					ii = v.Int64()
    				case KindUint64:
    					u = v.Uint64()
    				case KindFloat64:
    					f = v.Float64()
    				case KindBool:
    					bb = v.Bool()
    				case KindDuration:
    					d = v.Duration()
    				case KindAny:
    					a = v.Any()
    				default:
    					panic("bad kind")
    				}
    			}
    		}
    		_ = ii
    		_ = s
    		_ = bb
    		_ = u
    		_ = d
    		_ = f
    		_ = a
    
    	})
    	b.Run("As", func(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 21 20:55:33 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. src/log/slog/value.go

    )
    
    // Kind is the kind of a [Value].
    type Kind int
    
    // The following list is sorted alphabetically, but it's also important that
    // KindAny is 0 so that a zero Value represents nil.
    
    const (
    	KindAny Kind = iota
    	KindBool
    	KindDuration
    	KindFloat64
    	KindInt64
    	KindString
    	KindTime
    	KindUint64
    	KindGroup
    	KindLogValuer
    )
    
    var kindStrings = []string{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top