Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Spring (0.14 sec)

  1. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

       * maps ("constant maps"). Example:
       *
       * <pre>{@code
       * 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>
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Sets.java

       * cast, for example:
       *
       * <pre>{@code
       * Set<Object> aFewBadObjects = ...
       * Set<String> manyBadStrings = ...
       *
       * // impossible for a non-String to be in the intersection
       * SuppressWarnings("unchecked")
       * Set<String> badStrings = (Set) Sets.intersection(
       *     aFewBadObjects, manyBadStrings);
       * }</pre>
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertTrue(Arrays.equals(new String[] {"a"}, array));
      }
    
      @GwtIncompatible // Iterators.toArray(Iterator, Class)
      public void testToArray() {
        String[] sourceArray = new String[] {"a", "b", "c"};
        Iterator<String> iterator = asList(sourceArray).iterator();
        String[] newArray = Iterators.toArray(iterator, String.class);
        assertTrue(Arrays.equals(sourceArray, newArray));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Multimaps.java

       *
       * <pre>{@code
       * Multimap<String, Integer> multimap =
       *     ImmutableMultimap.of("a", 1, "a", 4, "b", 6);
       * EntryTransformer<String, Integer, String> transformer =
       *     new EntryTransformer<String, Integer, String>() {
       *       public String transformEntry(String key, Integer value) {
       *         return key + value;
       *       }
       *     };
       * Multimap<String, String> transformed =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Iterators.java

       * guaranteed to return the same object again. For example:
       *
       * <pre>{@code
       * PeekingIterator<String> peekingIterator =
       *     Iterators.peekingIterator(Iterators.forArray("a", "b"));
       * String a1 = peekingIterator.peek(); // returns "a"
       * String a2 = peekingIterator.peek(); // also returns "a"
       * String a3 = peekingIterator.next(); // also returns "a"
       * }</pre>
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
Back to top