Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for Murray (0.24 sec)

  1. android/guava/src/com/google/common/base/Preconditions.java

       */
    
      /**
       * Ensures that {@code index} specifies a valid <i>element</i> in an array, list or string of size
       * {@code size}. An element index may range from zero, inclusive, to {@code size}, exclusive.
       *
       * @param index a user-supplied index identifying an element of an array, list or string
       * @param size the size of that array, list or string
       * @return the value of {@code index}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/IteratorsTest.java

      public void testForArrayLengthWithPositionBoundaryCases() {
        String[] array = {"foo", "bar"};
        assertFalse(Iterators.forArrayWithPosition(array, 2).hasNext());
        try {
          Iterators.forArrayWithPosition(array, -1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
        try {
          Iterators.forArrayWithPosition(array, 3);
          fail();
        } catch (IndexOutOfBoundsException expected) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/SetsTest.java

      }
    
      private static byte[] prepended(byte b, byte[] array) {
        byte[] out = new byte[array.length + 1];
        out[0] = b;
        System.arraycopy(array, 0, out, 1, array.length);
        return out;
      }
    
      @GwtIncompatible // java.nio.ByteBuffer
      private static byte[] toByteArray(int h) {
        return ByteBuffer.allocate(4).putInt(h).array();
      }
    
      public void testNewEnumSet_empty() {
    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. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

          Iterable<? extends Entry<? extends K, ? extends V>> entries) {
        // "adding" type params to an array of a raw type should be safe as
        // long as no one can ever cast that same array instance back to a
        // raw type.
        @SuppressWarnings("unchecked")
        Entry<K, V>[] entryArray = (Entry[]) Iterables.toArray(entries, EMPTY_ENTRY_ARRAY);
        return fromEntries(comparator, sameComparator, entryArray, entryArray.length);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 52.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableSortedMap.java

          Iterable<? extends Entry<? extends K, ? extends V>> entries) {
        // "adding" type params to an array of a raw type should be safe as
        // long as no one can ever cast that same array instance back to a
        // raw type.
        @SuppressWarnings("unchecked")
        Entry<K, V>[] entryArray = (Entry[]) Iterables.toArray(entries, EMPTY_ENTRY_ARRAY);
        return fromEntries(comparator, sameComparator, entryArray, entryArray.length);
      }
    
    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)
  6. android/guava/src/com/google/common/collect/Synchronized.java

        }
    
        @Override
        @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations
        public <T extends @Nullable Object> T[] toArray(T[] array) {
          synchronized (mutex) {
            return ObjectArrays.toArrayImpl(delegate(), array);
          }
        }
    
        @Override
        public boolean contains(@CheckForNull Object o) {
          synchronized (mutex) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/MapsTest.java

       * won't cause a rehash.
       *
       * <p>As of jdk7u40, HashMap has an empty-map optimization. The argument to new HashMap(int) is
       * noted, but the initial table is a zero-length array.
       *
       * <p>This test may fail miserably on non-OpenJDK environments...
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      @AndroidIncompatible // relies on assumptions about OpenJDK
    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)
  8. android/guava-tests/test/com/google/common/collect/MapsTest.java

       * won't cause a rehash.
       *
       * <p>As of jdk7u40, HashMap has an empty-map optimization. The argument to new HashMap(int) is
       * noted, but the initial table is a zero-length array.
       *
       * <p>This test may fail miserably on non-OpenJDK environments...
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      @AndroidIncompatible // relies on assumptions about OpenJDK
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Preconditions.java

       */
    
      /**
       * Ensures that {@code index} specifies a valid <i>element</i> in an array, list or string of size
       * {@code size}. An element index may range from zero, inclusive, to {@code size}, exclusive.
       *
       * @param index a user-supplied index identifying an element of an array, list or string
       * @param size the size of that array, list or string
       * @return the value of {@code index}
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 14 15:46:55 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      public void testForArrayLengthWithPositionBoundaryCases() {
        String[] array = {"foo", "bar"};
        assertFalse(Iterators.forArrayWithPosition(array, 2).hasNext());
        try {
          Iterators.forArrayWithPosition(array, -1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
        try {
          Iterators.forArrayWithPosition(array, 3);
          fail();
        } catch (IndexOutOfBoundsException expected) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
Back to top