Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 11 for newEArray (0.18 seconds)

  1. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

       * @throws IllegalArgumentException if {@code capacity} is less than 1
       */
      public MonitorBasedArrayBlockingQueue(int capacity, boolean fair) {
        checkArgument(capacity > 0);
        this.items = newEArray(capacity);
        monitor = new Monitor(fair);
        notEmpty =
            new Monitor.Guard(monitor) {
              @Override
              public boolean isSatisfied() {
                return count > 0;
              }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 22.4K bytes
    - Click Count (0)
  2. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

       * @throws IllegalArgumentException if {@code capacity} is less than 1
       */
      public MonitorBasedArrayBlockingQueue(int capacity, boolean fair) {
        checkArgument(capacity > 0);
        this.items = newEArray(capacity);
        monitor = new Monitor(fair);
        notEmpty =
            new Monitor.Guard(monitor) {
              @Override
              public boolean isSatisfied() {
                return count > 0;
              }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 22.4K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java

            final String[] newArray;
            if (oldArray != null) {
                newArray = new String[oldArray.length + 1];
                System.arraycopy(oldArray, 0, newArray, 0, oldArray.length);
                newArray[oldArray.length] = value;
            } else {
                newArray = new String[] { value };
            }
            elementsAll.put(fieldName, newArray);
            elementsText.put(fieldName, newArray);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 08:48:41 GMT 2026
    - 18.9K bytes
    - Click Count (1)
  4. guava-tests/test/com/google/common/primitives/LongsTest.java

      public void testAsList_toArray_roundTrip() {
        long[] array = {0L, 1L, 2L};
        List<Long> list = Longs.asList(array);
        long[] newArray = Longs.toArray(list);
    
        // Make sure it returned a copy
        list.set(0, 4L);
        assertThat(newArray).isEqualTo(new long[] {0L, 1L, 2L});
        newArray[1] = 5L;
        assertThat((long) list.get(1)).isEqualTo(1L);
      }
    
      // This test stems from a real bug found by andrewk
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 28.8K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/collect/IterablesTest.java

      public void testToArray() {
        String[] sourceArray = new String[] {"a", "b", "c"};
        Iterable<String> iterable = asList(sourceArray);
        String[] newArray = Iterables.toArray(iterable, String.class);
        assertThat(newArray).isEqualTo(sourceArray);
      }
    
      public void testAny() {
        List<String> list = new ArrayList<>();
        Predicate<String> predicate = equalTo("pants");
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 47.5K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/collect/OrderingTest.java

    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.collect.Iterators.singletonIterator;
    import static com.google.common.collect.ObjectArrays.newArray;
    import static com.google.common.collect.ReflectionFreeAssertThrows.assertThrows;
    import static com.google.common.collect.testing.Helpers.testComparator;
    import static com.google.common.testing.SerializableTester.reserialize;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 43.2K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/collect/OrderingTest.java

    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.collect.Iterators.singletonIterator;
    import static com.google.common.collect.ObjectArrays.newArray;
    import static com.google.common.collect.ReflectionFreeAssertThrows.assertThrows;
    import static com.google.common.collect.testing.Helpers.testComparator;
    import static com.google.common.testing.SerializableTester.reserialize;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 43.2K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/collect/IteratorsTest.java

      public void testToArray() {
        String[] sourceArray = new String[] {"a", "b", "c"};
        Iterator<String> iterator = asList(sourceArray).iterator();
        String[] newArray = Iterators.toArray(iterator, String.class);
        assertThat(newArray).isEqualTo(sourceArray);
      }
    
      public void testFilterSimple() {
        Iterator<String> unfiltered = Lists.newArrayList("foo", "bar").iterator();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 57.3K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      public void testToArray() {
        String[] sourceArray = new String[] {"a", "b", "c"};
        Iterator<String> iterator = asList(sourceArray).iterator();
        String[] newArray = Iterators.toArray(iterator, String.class);
        assertThat(newArray).isEqualTo(sourceArray);
      }
    
      public void testFilterSimple() {
        Iterator<String> unfiltered = Lists.newArrayList("foo", "bar").iterator();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 57.3K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/FluentIterable.java

       *
       * @param type the type of the elements
       * @return a newly-allocated array into which all the elements of this fluent iterable have been
       *     copied
       */
      @GwtIncompatible // Array.newArray(Class, int)
      public final E[] toArray(Class<@NonNull E> type) {
        return Iterables.<E>toArray(getDelegate(), type);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 34.7K bytes
    - Click Count (0)
Back to Top