Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 516 for ways (0.12 sec)

  1. guava-tests/benchmark/com/google/common/collect/ImmutableListCreationBenchmark.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import java.util.List;
    
    /**
     * Benchmark for various ways to create an {@code ImmutableList}.
     *
     * @author Louis Wasserman
     */
    public class ImmutableListCreationBenchmark {
    
      @Param({"10", "1000", "1000000"})
      int size;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableMapFloodingTest.java

      public ImmutableMapFloodingTest() {
        super(
            Arrays.asList(ConstructionPathway.values()),
            n -> n * Math.log(n),
            ImmutableList.of(QueryOp.MAP_GET));
      }
    
      /** All the ways to create an ImmutableMap. */
      enum ConstructionPathway implements Construction<Map<Object, Object>> {
        COPY_OF_MAP {
          @Override
          public Map<Object, Object> create(List<?> keys) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  3. .github/ISSUE_TEMPLATE/feature_enhancement_request.yaml

    description: I want to make an existing feature better
    labels: ["type=enhancement"]
    body:
      - type: markdown
        attributes:
          value: >
            Filing feature requests is one of the most popular ways to contribute to Guava.
    
    
            Be aware, though: most feature requests are not accepted, even if they're suggested by
            a full-time Guava team member. [Feedback](https://stackoverflow.com/a/4543114) from our
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

          Spliterator.OfPrimitive<E, C, ?> split = spliteratorOfPrimitive.trySplit();
          return split == null ? null : new GeneralSpliteratorOfPrimitive<>(split, consumerizer);
        }
      }
    
      /**
       * Different ways of decomposing a Spliterator, all of which must produce the same elements (up to
       * ordering, if Spliterator.ORDERED is not present).
       */
      enum SpliteratorDecompositionStrategy {
        NO_SPLIT_FOR_EACH_REMAINING {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 18:19:31 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableSetFloodingTest.java

                QueryOp.create(
                    "contains",
                    (s, o) -> {
                      boolean unused = s.contains(o);
                    },
                    Math::log)));
      }
    
      /** All the ways to construct an ImmutableSet. */
      enum ConstructionPathway implements Construction<Set<Object>> {
        OF {
          @Override
          public ImmutableSet<Object> create(List<?> list) {
            Object o1 = list.get(0);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

              .testForwarding(Equals.class, NoDelegateToEquals.WRAPPER);
        } catch (AssertionFailedError expected) {
          return;
        }
        fail("Should have failed");
      }
    
      /** An interface for the 2 ways that a chaining call might be defined. */
      private interface ChainingCalls {
        // A method that is defined to 'return this'
        @CanIgnoreReturnValue
        ChainingCalls chainingCall();
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/math/LessThanBenchmark.java

     */
    
    package com.google.common.math;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import java.util.Random;
    
    /**
     * Benchmarks for various ways of writing the expression {@code foo + ((bar < baz) ? 1 : 0)}.
     *
     * @author Louis Wasserman
     */
    public class LessThanBenchmark {
      static final int SAMPLE_SIZE = 0x1000;
      static final int SAMPLE_MASK = 0x0FFF;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableBiMapFloodingTest.java

            ImmutableList.of(
                QueryOp.create("BiMap.get", BiMap::get, Math::log),
                QueryOp.create("BiMap.inverse.get", (bm, o) -> bm.inverse().get(o), Math::log)));
      }
    
      /** All the ways to create an ImmutableBiMap. */
      enum ConstructionPathway {
        COPY_OF_MAP {
          @Override
          public ImmutableBiMap<Object, Object> create(List<Entry<?, ?>> entries) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableMultisetFloodingTest.java

                QueryOp.create(
                    "count",
                    (ms, o) -> {
                      int unused = ms.count(o);
                    },
                    Math::log)));
      }
    
      /** All the ways to create an ImmutableMultiset. */
      enum ConstructionPathway implements Construction<Multiset<Object>> {
        COPY_OF_COLLECTION {
          @Override
          public ImmutableMultiset<Object> create(List<?> keys) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/net/PercentEscaperTest.java

        assertEquals("safestring", e.escape("safestring"));
        assertEquals("embedded%00null", e.escape("embedded\0null"));
        assertEquals("max%EF%BF%BFchar", e.escape("max\uffffchar"));
      }
    
      /** Tests the various ways that the space character can be handled */
      public void testPlusForSpace() {
        UnicodeEscaper basicEscaper = new PercentEscaper("", false);
        UnicodeEscaper plusForSpaceEscaper = new PercentEscaper("", true);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.2K bytes
    - Viewed (0)
Back to top