Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for MoreCollectors (0.07 sec)

  1. android/guava/src/com/google/common/collect/MoreCollectors.java

     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    @SuppressWarnings("Java7ApiChecker")
    @IgnoreJRERequirement // Users will use this only if they're already using streams.
    public final class MoreCollectors {
    
      /*
       * TODO(lowasser): figure out if we can convert this to a concurrent AtomicReference-based
       * collector without breaking j2cl?
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MoreCollectorsTest.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.MoreCollectors.onlyElement;
    import static com.google.common.collect.MoreCollectors.toOptional;
    import static com.google.common.collect.ReflectionFreeAssertThrows.assertThrows;
    import static com.google.common.truth.Truth.assertThat;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/collect/StreamsBenchmark.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.MoreCollectors.onlyElement;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.caliper.api.SkipThisScenarioException;
    import java.util.ArrayList;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Iterables.java

      }
    
      /**
       * Returns the single element contained in {@code iterable}.
       *
       * <p><b>Java 8+ users:</b> the {@code Stream} equivalent to this method is {@code
       * stream.collect(MoreCollectors.onlyElement())}.
       *
       * @throws NoSuchElementException if the iterable is empty
       * @throws IllegalArgumentException if the iterable contains multiple elements
       */
      @ParametricNullness
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 42.8K bytes
    - Viewed (0)
Back to top