Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 72 for ImmutableSet (0.1 sec)

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

          double setSize = rng.nextDouble();
          if (setSize < emptySetProportion) {
            sets[i] = ImmutableSet.of();
          } else if (setSize < emptySetProportion + singletonSetProportion) {
            sets[i] = ImmutableSet.of(PRESENT);
          } else {
            sets[i] = ImmutableSet.of(PRESENT, new Object());
          }
    
          if (rng.nextDouble() < hitRate) {
            queries[i] = PRESENT;
          } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/TestByteSink.java

      private final ByteArrayOutputStream bytes = new ByteArrayOutputStream();
      private final ImmutableSet<TestOption> options;
    
      private boolean outputStreamOpened;
      private boolean outputStreamClosed;
    
      public TestByteSink(TestOption... options) {
        this.options = ImmutableSet.copyOf(options);
      }
    
      byte[] getBytes() {
        return bytes.toByteArray();
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Sep 15 13:47:32 UTC 2016
    - 1.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/net/HttpHeadersTest.java

                .put("X_WEBKIT_CSP", "X-WebKit-CSP")
                .put("X_WEBKIT_CSP_REPORT_ONLY", "X-WebKit-CSP-Report-Only")
                .buildOrThrow();
        ImmutableSet<String> uppercaseAcronyms =
            ImmutableSet.of(
                "CH", "ID", "DNT", "DNS", "DPR", "ECT", "GPC", "HTTP2", "IP", "MD5", "P3P", "RTT", "TE",
                "UA", "UID", "URL", "WWW", "XSS");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 22 21:08:08 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/net/HttpHeadersTest.java

                .put("X_WEBKIT_CSP", "X-WebKit-CSP")
                .put("X_WEBKIT_CSP_REPORT_ONLY", "X-WebKit-CSP-Report-Only")
                .buildOrThrow();
        ImmutableSet<String> uppercaseAcronyms =
            ImmutableSet.of(
                "CH", "ID", "DNT", "DNS", "DPR", "ECT", "GPC", "HTTP2", "IP", "MD5", "P3P", "RTT", "TE",
                "UA", "UID", "URL", "WWW", "XSS");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 22 21:08:08 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/RegularImmutableTableTest.java

      private static final ImmutableSet<Cell<Character, Integer, String>> CELLS =
          ImmutableSet.of(
              immutableCell('a', 1, "foo"), immutableCell('b', 1, "bar"), immutableCell('a', 2, "baz"));
    
      private static final ImmutableSet<Character> ROW_SPACE = ImmutableSet.of('a', 'b');
    
      private static final ImmutableSet<Integer> COLUMN_SPACE = ImmutableSet.of(1, 2);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/collect/ImmutableSetHashFloodingDetectionBenchmark.java

    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.common.math.IntMath;
    import java.math.RoundingMode;
    
    /** Benchmark of implementations of {@link ImmutableSet#hashFloodingDetected(Object[])}. */
    public class ImmutableSetHashFloodingDetectionBenchmark {
      private static final int TEST_CASES = 0x100;
    
      @Param({"10", "100", "1000", "10000"})
      int size;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 03 20:16:35 UTC 2021
    - 6.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/RegularImmutableTable.java

        }
    
        ImmutableSet<R> rowSpace =
            (rowComparator == null)
                ? ImmutableSet.copyOf(rowSpaceBuilder)
                : ImmutableSet.copyOf(ImmutableList.sortedCopyOf(rowComparator, rowSpaceBuilder));
        ImmutableSet<C> columnSpace =
            (columnComparator == null)
                ? ImmutableSet.copyOf(columnSpaceBuilder)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/SingletonImmutableTableTest.java

      }
    
      public void testCellSet() {
        assertEquals(ImmutableSet.of(immutableCell('a', 1, "blah")), testTable.cellSet());
      }
    
      public void testColumn() {
        assertEquals(ImmutableMap.of(), testTable.column(0));
        assertEquals(ImmutableMap.of('a', "blah"), testTable.column(1));
      }
    
      public void testColumnKeySet() {
        assertEquals(ImmutableSet.of(1), testTable.columnKeySet());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java

    import static com.google.common.collect.testing.google.ReflectionFreeAssertThrows.assertThrows;
    import static java.util.Collections.singletonList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Iterators;
    import com.google.common.collect.Lists;
    import com.google.common.collect.Multimap;
    import com.google.common.collect.testing.features.CollectionSize;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/QuantilesAlgorithmTest.java

      private static final QuantilesAlgorithm REFERENCE_ALGORITHM = QuantilesAlgorithm.SORTING;
      private static final Set<QuantilesAlgorithm> NON_REFERENCE_ALGORITHMS =
          Sets.difference(
              ImmutableSet.copyOf(QuantilesAlgorithm.values()), ImmutableSet.of(REFERENCE_ALGORITHM));
    
      private double[] dataset;
    
      @Override
      protected void setUp() {
        dataset = new double[DATASET_SIZE];
        for (int i = 0; i < DATASET_SIZE; i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.4K bytes
    - Viewed (0)
Back to top