Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 88 for Murray (0.14 sec)

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

        assertEquals(String[].class, array.getClass());
        assertThat(array).hasLength(2);
        assertNull(array[0]);
      }
    
      public void testNewArray_fromArray_OfArray() {
        String[][] array = ObjectArrays.newArray(new String[0][0], 1);
        assertEquals(String[][].class, array.getClass());
        assertThat(array).hasLength(1);
        assertNull(array[0]);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

        }
      }
    
      /** @return an array of the proper size with {@code null} as the key of the middle element. */
      protected Entry<K, V>[] createArrayWithNullKey() {
        Entry<K, V>[] array = createSamplesArray();
        int nullKeyLocation = getNullLocation();
        Entry<K, V> oldEntry = array[nullKeyLocation];
        array[nullKeyLocation] = entry(null, oldEntry.getValue());
        return array;
      }
    
      protected V getValueForNullKey() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionCreationTester.java

      public void testCreateWithNull_supported() {
        E[] array = createArrayWithNullElement();
        collection = getSubjectGenerator().create(array);
        expectContents(array);
      }
    
      @CollectionFeature.Require(absent = ALLOWS_NULL_VALUES)
      @CollectionSize.Require(absent = ZERO)
      public void testCreateWithNull_unsupported() {
        E[] array = createArrayWithNullElement();
    
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

        }
      }
    
      protected E[] createSamplesArray() {
        E[] array = getSubjectGenerator().createArray(getNumElements());
        getSampleElements().toArray(array);
        return array;
      }
    
      protected E[] createOrderedArray() {
        E[] array = getSubjectGenerator().createArray(getNumElements());
        getOrderedElements().toArray(array);
        return array;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/RegularImmutableSet.java

    @ElementTypesAreNonnullByDefault
    final class RegularImmutableSet<E> extends ImmutableSet<E> {
      private static final Object[] EMPTY_ARRAY = new Object[0];
      static final RegularImmutableSet<Object> EMPTY =
          new RegularImmutableSet<>(EMPTY_ARRAY, 0, EMPTY_ARRAY, 0, 0);
    
      // The first `size` elements are non-null.
      @VisibleForTesting final transient @Nullable Object[] elements;
      private final transient int hashCode;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/TestStringQueueGenerator.java

        return new Strings();
      }
    
      @Override
      public Queue<String> create(Object... elements) {
        String[] array = new String[elements.length];
        int i = 0;
        for (Object e : elements) {
          array[i++] = (String) e;
        }
        return create(array);
      }
    
      protected abstract Queue<String> create(String[] elements);
    
      @Override
      public String[] createArray(int length) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/TestStringListGenerator.java

        return new Strings();
      }
    
      @Override
      public List<String> create(Object... elements) {
        String[] array = new String[elements.length];
        int i = 0;
        for (Object e : elements) {
          array[i++] = (String) e;
        }
        return create(array);
      }
    
      /**
       * Creates a new collection containing the given elements; implement this method instead of {@link
       * #create(Object...)}.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/TestUnhashableCollectionGenerator.java

        return new Unhashables();
      }
    
      @Override
      public T create(Object... elements) {
        UnhashableObject[] array = createArray(elements.length);
        int i = 0;
        for (Object e : elements) {
          array[i++] = (UnhashableObject) e;
        }
        return create(array);
      }
    
      /**
       * Creates a new collection containing the given elements; implement this method instead of {@link
       * #create(Object...)}.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/TestStringSetMultimapGenerator.java

        @SuppressWarnings("unchecked")
        Entry<String, String>[] array = (Entry<String, String>[]) new Entry<?, ?>[entries.length];
        int i = 0;
        for (Object o : entries) {
          @SuppressWarnings("unchecked")
          Entry<String, String> e = (Entry<String, String>) o;
          array[i++] = e;
        }
        return create(array);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/stream/StreamUtilTest.java

        public void test_ofValues() {
            String[] values = { "value1", "value2" };
            StreamUtil.stream(values[0], values[1]).of(s -> {
                Object[] array = s.toArray();
                for (int i = 0; i < 2; i++) {
                    assertEquals(values[i], array[i]);
                }
            });
        }
    
        public void test_ofNull() {
            assertEquals(0, (int) StreamUtil.stream().get(s -> s.toArray().length));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.7K bytes
    - Viewed (0)
Back to top