Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 199 for ImmutableSet (0.07 sec)

  1. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

            return location.file();
          }
        }
        throw new AssertionError("Failed to find a jar file");
      }
    
      private static ImmutableSet<String> scanResourceNames(ClassLoader loader) throws IOException {
        ImmutableSet.Builder<String> builder = ImmutableSet.builder();
        for (ClassPath.LocationInfo location : ClassPath.locationsFrom(loader)) {
          for (ResourceInfo resource : location.scanResources()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 25K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CharSourceTest.java

      static final CharSink BROKEN_OPEN_SINK = new TestCharSink(OPEN_THROWS);
    
      private static final ImmutableSet<CharSource> BROKEN_SOURCES =
          ImmutableSet.of(BROKEN_CLOSE_SOURCE, BROKEN_OPEN_SOURCE, BROKEN_READ_SOURCE);
      private static final ImmutableSet<CharSink> BROKEN_SINKS =
          ImmutableSet.of(BROKEN_CLOSE_SINK, BROKEN_OPEN_SINK, BROKEN_WRITE_SINK);
    
      public void testCopyExceptions() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/math/QuantilesBenchmark.java

        for (int i = 0; i < reps; i++) {
          dummy += algorithm.multipleQuantiles(ImmutableSet.of(90, 99), 100, dataset(i)).get(90);
        }
        return dummy;
      }
    
      @Benchmark
      double threePercentiles(int reps) {
        double dummy = 0.0;
        for (int i = 0; i < reps; i++) {
          dummy += algorithm.multipleQuantiles(ImmutableSet.of(90, 95, 99), 100, dataset(i)).get(90);
        }
        return dummy;
      }
    
      @Benchmark
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/math/QuantilesBenchmark.java

        for (int i = 0; i < reps; i++) {
          dummy += algorithm.multipleQuantiles(ImmutableSet.of(90, 99), 100, dataset(i)).get(90);
        }
        return dummy;
      }
    
      @Benchmark
      double threePercentiles(int reps) {
        double dummy = 0.0;
        for (int i = 0; i < reps; i++) {
          dummy += algorithm.multipleQuantiles(ImmutableSet.of(90, 95, 99), 100, dataset(i)).get(90);
        }
        return dummy;
      }
    
      @Benchmark
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/JdkBackedImmutableMultiset.java

      @Override
      public int count(@CheckForNull Object element) {
        return delegateMap.getOrDefault(element, 0);
      }
    
      @LazyInit @CheckForNull private transient ImmutableSet<E> elementSet;
    
      @Override
      public ImmutableSet<E> elementSet() {
        ImmutableSet<E> result = elementSet;
        return (result == null) ? elementSet = new ElementSet<>(entries, this) : result;
      }
    
      @Override
      Entry<E> getEntry(int index) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

    import com.google.common.collect.ImmutableSet;
    import java.security.MessageDigest;
    import java.security.NoSuchAlgorithmException;
    import java.util.Arrays;
    import junit.framework.TestCase;
    
    /**
     * Tests for the MessageDigestHashFunction.
     *
     * @author Kurt Alfred Kluever
     */
    public class MessageDigestHashFunctionTest extends TestCase {
      private static final ImmutableSet<String> INPUTS = ImmutableSet.of("", "Z", "foobar");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableTable.java

          }
        }
      }
    
      ImmutableTable() {}
    
      @Override
      public ImmutableSet<Cell<R, C, V>> cellSet() {
        return (ImmutableSet<Cell<R, C, V>>) super.cellSet();
      }
    
      @Override
      abstract ImmutableSet<Cell<R, C, V>> createCellSet();
    
      @Override
      final UnmodifiableIterator<Cell<R, C, V>> cellIterator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/RegularImmutableAsListTest.java

      /**
       * RegularImmutableAsList should assume its input is null-free without checking, because it only
       * gets invoked from other immutable collections.
       */
      public void testDoesntCheckForNull() {
        ImmutableSet<Integer> set = ImmutableSet.of(1, 2, 3);
        ImmutableList<Integer> unused =
            new RegularImmutableAsList<Integer>(set, new @Nullable Object[] {null, null, null});
        // shouldn't throw!
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 10:16:44 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/FauxveridesTest.java

      }
    
      public void testImmutableSortedSetCopyOfIterable() {
        Set<Object> original = ImmutableSet.of(new Object(), new Object());
    
        assertThrows(ClassCastException.class, () -> ImmutableSortedSet.copyOf(original));
      }
    
      public void testImmutableSortedSetCopyOfIterator() {
        Set<Object> original = ImmutableSet.of(new Object(), new Object());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/FauxveridesTest.java

      }
    
      public void testImmutableSortedSetCopyOfIterable() {
        Set<Object> original = ImmutableSet.of(new Object(), new Object());
    
        assertThrows(ClassCastException.class, () -> ImmutableSortedSet.copyOf(original));
      }
    
      public void testImmutableSortedSetCopyOfIterator() {
        Set<Object> original = ImmutableSet.of(new Object(), new Object());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top