Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 172 for Shreve (0.17 sec)

  1. guava-tests/test/com/google/common/primitives/LongsTest.java

        List<Long> one = Arrays.asList((long) 1);
        assertThat(Longs.toArray(one)).isEqualTo(ARRAY1);
    
        long[] array = {(long) 0, (long) 1, 0x0FF1C1AL};
    
        List<Long> three = Arrays.asList((long) 0, (long) 1, 0x0FF1C1AL);
        assertThat(Longs.toArray(three)).isEqualTo(array);
    
        assertThat(Longs.toArray(Longs.asList(array))).isEqualTo(array);
      }
    
      public void testToArray_threadSafe() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(Doubles.toArray(one)).isEqualTo(ARRAY1);
    
        double[] array = {(double) 0, (double) 1, Math.PI};
    
        List<Double> three = Arrays.asList((double) 0, (double) 1, Math.PI);
        assertThat(Doubles.toArray(three)).isEqualTo(array);
    
        assertThat(Doubles.toArray(Doubles.asList(array))).isEqualTo(array);
      }
    
      public void testToArray_threadSafe() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/LongsTest.java

        List<Long> one = Arrays.asList((long) 1);
        assertThat(Longs.toArray(one)).isEqualTo(ARRAY1);
    
        long[] array = {(long) 0, (long) 1, 0x0FF1C1AL};
    
        List<Long> three = Arrays.asList((long) 0, (long) 1, 0x0FF1C1AL);
        assertThat(Longs.toArray(three)).isEqualTo(array);
    
        assertThat(Longs.toArray(Longs.asList(array))).isEqualTo(array);
      }
    
      public void testToArray_threadSafe() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/net/PercentEscaper.java

          cp >>>= 2;
          dest[2] = UPPER_HEX_DIGITS[cp & 0xF];
          cp >>>= 4;
          dest[1] = UPPER_HEX_DIGITS[0xC | cp];
          return dest;
        } else if (cp <= 0xffff) {
          // Three byte UTF-8 characters [cp >= 0x800 && cp <= 0xffff]
          // Start with "%E-%--%--" and fill in the blanks
          char[] dest = new char[9];
          dest[0] = '%';
          dest[1] = 'E';
          dest[3] = '%';
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableMap.java

       *
       * <pre>{@code
       * static final ImmutableMap<String, Integer> WORD_TO_INT =
       *     new ImmutableMap.Builder<String, Integer>()
       *         .put("one", 1)
       *         .put("two", 2)
       *         .put("three", 3)
       *         .buildOrThrow();
       * }</pre>
       *
       * <p>For <i>small</i> immutable maps, the {@code ImmutableMap.of()} methods are even more
       * convenient.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

          }
          assertThat(remaining).isEqualTo(0);
          assertIntact(queue);
          assertThat(queue).containsExactlyElementsIn(elements);
        }
      }
    
      private enum Element {
        ONE,
        TWO,
        THREE,
        FOUR,
        FIVE;
      }
    
      public void testRandomAddsAndRemoves_duplicateElements() {
        Random random = new Random(0);
        Multiset<Element> elements = HashMultiset.create();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      // Some convenient Integer constants
    
      public static final Integer zero = 0;
      public static final Integer one = 1;
      public static final Integer two = 2;
      public static final Integer three = 3;
      public static final Integer four = 4;
      public static final Integer five = 5;
      public static final Integer six = 6;
      public static final Integer seven = 7;
      public static final Integer eight = 8;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Lists.java

       * size (the final list may be smaller). For example, partitioning a list containing {@code [a, b,
       * c, d, e]} with a partition size of 3 yields {@code [[a, b, c], [d, e]]} -- an outer list
       * containing two inner lists of three and two elements, all in the original order.
       *
       * <p>The outer list is unmodifiable, but reflects the latest state of the source list. The inner
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 16:48:36 GMT 2024
    - 41.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableSortedMap.java

       * static final ImmutableSortedMap<Integer, String> INT_TO_WORD =
       *     new ImmutableSortedMap.Builder<Integer, String>(Ordering.natural())
       *         .put(1, "one")
       *         .put(2, "two")
       *         .put(3, "three")
       *         .buildOrThrow();
       * }</pre>
       *
       * <p>For <i>small</i> immutable sorted maps, the {@code ImmutableSortedMap.of()} methods are even
       * more convenient.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/eventbus/SubscriberRegistryTest.java

        registry.register(o1);
    
        Iterator<Subscriber> three = registry.getSubscribers("");
        assertEquals(s1, one.next().target);
        assertFalse(one.hasNext());
    
        assertEquals(s1, three.next().target);
        assertEquals(s2, three.next().target);
        assertEquals(o1, three.next().target);
        assertFalse(three.hasNext());
    
        three = registry.getSubscribers("");
    
        registry.unregister(s2);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.7K bytes
    - Viewed (0)
Back to top