Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for 15 (0.11 sec)

  1. guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

        ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create(15, 20);
        assertEquals(20, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromIllegalSizes() {
        try {
          ArrayListMultimap.create(15, -2);
          fail();
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          ArrayListMultimap.create(-15, 2);
          fail();
        } catch (IllegalArgumentException expected) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheStatsTest.java

        assertEquals(4, diff.evictionCount());
    
        assertEquals(new CacheStats(0, 0, 0, 0, 0, 0), one.minus(two));
      }
    
      public void testPlus() {
        CacheStats one = new CacheStats(11, 13, 15, 13, 11, 9);
        CacheStats two = new CacheStats(53, 47, 41, 39, 37, 35);
    
        CacheStats sum = two.plus(one);
        assertEquals(124, sum.requestCount());
        assertEquals(64, sum.hitCount());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Sun Jun 30 14:58:49 GMT 2019
    - 4.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/HashMultimapTest.java

        HashMultimap<String, Integer> multimap = HashMultimap.create(20, 15);
        multimap.put("foo", 1);
        multimap.put("bar", 2);
        multimap.put("foo", 3);
        assertEquals(ImmutableSet.of(1, 3), multimap.get("foo"));
        assertEquals(15, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromIllegalSizes() {
        try {
          HashMultimap.create(-20, 15);
          fail();
        } catch (IllegalArgumentException expected) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/SmallCharMatcher.java

       * hereby disclaims copyright to this source code.
       */
      static int smear(int hashCode) {
        return C2 * Integer.rotateLeft(hashCode * C1, 15);
      }
    
      private boolean checkFilter(int c) {
        return 1 == (1 & (filter >> c));
      }
    
      // This is all essentially copied from ImmutableSet, but we have to duplicate because
      // of dependencies.
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/AbstractHashFloodingTest.java

        int smallSize = haveSameHashesSmall.size();
    
        CallsCounter largeCounter = new CallsCounter();
        List<CountsHashCodeAndEquals> haveSameHashesLarge = createAdversarialInput(15, largeCounter);
        int largeSize = haveSameHashesLarge.size();
    
        for (Construction<T> pathway : constructions) {
          smallCounter.zero();
          pathway.create(haveSameHashesSmall);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/base/LazyStackTraceBenchmark.java

     * finder" implementation that might be used in a logging framework.
     */
    public class LazyStackTraceBenchmark {
      @Param({"20", "200", "2000"})
      int stackDepth;
    
      @Param({"-1", "3", "15"})
      int breakAt;
    
      int recursionCount;
    
      private static final Object duh = new Object();
    
      @Param Mode mode;
    
      enum Mode {
        LAZY_STACK_TRACE {
          @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

        ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create(15, 20);
        assertEquals(20, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromIllegalSizes() {
        try {
          ArrayListMultimap.create(15, -2);
          fail();
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          ArrayListMultimap.create(-15, 2);
          fail();
        } catch (IllegalArgumentException expected) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

            new ImmutableRangeMap.Builder<Integer, Integer>()
                .put(Range.closed(2, 4), 5)
                .put(Range.open(6, 7), 3)
                .put(Range.closedOpen(8, 10), 4)
                .put(Range.openClosed(15, 17), 2)
                .build();
    
        ImmutableMap<Range<Integer>, Integer> test = nonEmptyRangeMap.asMapOfRanges();
    
        for (Range<Integer> range : test.keySet()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java

        }
    
        @Override
        protected void processRemaining(ByteBuffer bb) {
          long k1 = 0;
          long k2 = 0;
          length += bb.remaining();
          switch (bb.remaining()) {
            case 15:
              k2 ^= (long) toInt(bb.get(14)) << 48; // fall through
            case 14:
              k2 ^= (long) toInt(bb.get(13)) << 40; // fall through
            case 13:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 5.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/CacheStatsTest.java

        assertEquals(4, diff.evictionCount());
    
        assertEquals(new CacheStats(0, 0, 0, 0, 0, 0), one.minus(two));
      }
    
      public void testPlus() {
        CacheStats one = new CacheStats(11, 13, 15, 13, 11, 9);
        CacheStats two = new CacheStats(53, 47, 41, 39, 37, 35);
    
        CacheStats sum = two.plus(one);
        assertEquals(124, sum.requestCount());
        assertEquals(64, sum.hitCount());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Jun 30 14:58:49 GMT 2019
    - 4.6K bytes
    - Viewed (0)
Back to top