Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for short (0.35 sec)

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

        String props = "test\n second = 2\n Third item :   a short  phrase   ";
    
        testProp.load(new StringReader(props));
    
        result = Maps.fromProperties(testProp);
        assertEquals(4, result.size());
        assertEquals("true", result.get("first"));
        assertEquals("", result.get("test"));
        assertEquals("2", result.get("second"));
        assertEquals("item :   a short  phrase   ", result.get("Third"));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/MapsTest.java

        String props = "test\n second = 2\n Third item :   a short  phrase   ";
    
        testProp.load(new StringReader(props));
    
        result = Maps.fromProperties(testProp);
        assertEquals(4, result.size());
        assertEquals("true", result.get("first"));
        assertEquals("", result.get("test"));
        assertEquals("2", result.get("second"));
        assertEquals("item :   a short  phrase   ", result.get("Third"));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/SetsTest.java

          Sets.subSet(set, Range.closed(4, 8));
          fail("IllegalArgumentException expected");
        } catch (IllegalArgumentException expected) {
        }
    
        // These results are all incorrect, but there's no way (short of iterating over the result)
        // to verify that with an arbitrary ordering or comparator.
        assertEquals(ImmutableSortedSet.of(2, 4), Sets.subSet(set, Range.atLeast(4)));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertEquals(char[].class, TypeToken.of(char[][].class).getComponentType().getType());
        assertEquals(byte.class, TypeToken.of(byte[].class).getComponentType().getType());
        assertEquals(short.class, TypeToken.of(short[].class).getComponentType().getType());
        assertEquals(int.class, TypeToken.of(int[].class).getComponentType().getType());
        assertEquals(long.class, TypeToken.of(long[].class).getComponentType().getType());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

     * should rarely override other methods.
     *
     * @author Sven Mawson
     * @author Luke Sandberg
     * @since 1.0
     */
    @SuppressWarnings({
      "ShortCircuitBoolean", // we use non-short circuiting comparisons intentionally
      "nullness", // TODO(b/147136275): Remove once our checker understands & and |.
    })
    @GwtCompatible(emulated = true)
    @ReflectionSupport(value = ReflectionSupport.Level.FULL)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

                keys[i] = key;
                values[i] = value;
              }
            } else {
              // Need to sort and check for nulls and dupes.
              // Inline the Comparator implementation rather than transforming with a Function
              // to save code size.
              Arrays.sort(
                  entryArray,
                  0,
                  size,
                  (e1, e2) -> {
    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)
  7. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

         * traverse. When nodes would otherwise be changed, new nodes are created to replace them. This
         * works well for hash tables since the bin lists tend to be short. (The average length is less
         * than two.)
         *
         * Read operations can thus proceed without locking, but rely on selected uses of volatiles to
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/reflect/TypeToken.java

        @CanIgnoreReturnValue
        private int collectTypes(K type, Map<? super K, Integer> map) {
          Integer existing = map.get(type);
          if (existing != null) {
            // short circuit: if set contains type it already contains its supertypes
            return existing;
          }
          // Interfaces should be listed before Object.
          int aboveMe = getRawType(type).isInterface() ? 1 : 0;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 53.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableSortedMap.java

                keys[i] = key;
                values[i] = value;
              }
            } else {
              // Need to sort and check for nulls and dupes.
              // Inline the Comparator implementation rather than transforming with a Function
              // to save code size.
              Arrays.sort(
                  entryArray,
                  0,
                  size,
                  (e1, e2) -> {
    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/src/com/google/common/collect/Sets.java

          int expectedSize) {
        return new LinkedHashSet<>(Maps.capacity(expectedSize));
      }
    
      // TreeSet
    
      /**
       * Creates a <i>mutable</i>, empty {@code TreeSet} instance sorted by the natural sort ordering of
       * its elements.
       *
       * <p><b>Note:</b> if mutability is not required, use {@link ImmutableSortedSet#of()} instead.
       *
    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)
Back to top