Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 189 for emptyList (0.12 sec)

  1. guava/src/com/google/common/primitives/Floats.java

       * @param backingArray the array to back the list
       * @return a list view of the array
       */
      public static List<Float> asList(float... backingArray) {
        if (backingArray.length == 0) {
          return Collections.emptyList();
        }
        return new FloatArrayAsList(backingArray);
      }
    
      @GwtCompatible
      private static class FloatArrayAsList extends AbstractList<Float>
          implements RandomAccess, Serializable {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Ordering.java

    import static com.google.common.collect.CollectPreconditions.checkNonnegative;
    import static java.util.Arrays.asList;
    import static java.util.Arrays.sort;
    import static java.util.Collections.emptyList;
    import static java.util.Collections.sort;
    import static java.util.Collections.unmodifiableList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.J2ktIncompatible;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/BytesTest.java

        assertThat(Bytes.toArray(list.subList(2, 2))).isEqualTo(new byte[] {});
      }
    
      public void testAsListEmpty() {
        assertThat(Bytes.asList(EMPTY)).isSameInstanceAs(Collections.emptyList());
      }
    
      public void testReverse() {
        testReverse(new byte[] {}, new byte[] {});
        testReverse(new byte[] {1}, new byte[] {1});
        testReverse(new byte[] {1, 2}, new byte[] {2, 1});
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/Doubles.java

       * @param backingArray the array to back the list
       * @return a list view of the array
       */
      public static List<Double> asList(double... backingArray) {
        if (backingArray.length == 0) {
          return Collections.emptyList();
        }
        return new DoubleArrayAsList(backingArray);
      }
    
      @GwtCompatible
      private static class DoubleArrayAsList extends AbstractList<Double>
          implements RandomAccess, Serializable {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/CharsTest.java

        assertThat(Chars.toArray(list.subList(2, 2))).isEqualTo(new char[] {});
      }
    
      public void testAsListEmpty() {
        assertThat(Chars.asList(EMPTY)).isSameInstanceAs(Collections.emptyList());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNulls() {
        new NullPointerTester().testAllPublicStaticMethods(Chars.class);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  6. compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

                    container.addComponent(mock(Maven.class), "org.apache.maven.Maven");
    
                    ((DefaultPlexusContainer) container)
                            .addPlexusInjector(Collections.emptyList(), binder -> binder.bind(EventSpyDispatcher.class)
                                    .toInstance(eventSpyDispatcherMock));
                }
            };
    
            CliRequest cliRequest = new CliRequest(new String[] {}, null);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/Cache.kt

            }
          }
        }
    
        @Throws(IOException::class)
        private fun readCertificateList(source: BufferedSource): List<Certificate> {
          val length = readInt(source)
          if (length == -1) return emptyList() // OkHttp v1.2 used -1 to indicate null.
    
          try {
            val certificateFactory = CertificateFactory.getInstance("X.509")
            val result = ArrayList<Certificate>(length)
            for (i in 0 until length) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/PredicatesTest.java

        checkSerialization(Predicates.or(FALSE, isOdd(), TRUE));
      }
    
      public void testOr_applyIterable() {
        Predicate<@Nullable Integer> vacuouslyFalse =
            Predicates.or(Collections.<Predicate<@Nullable Integer>>emptyList());
        Predicate<@Nullable Integer> troo = Predicates.or(Collections.singletonList(TRUE));
        /*
         * newLinkedList() takes varargs. TRUE and FALSE are both instances of
         * Predicate<Integer>, so the call is safe.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static java.lang.Math.min;
    import static java.util.Arrays.asList;
    import static java.util.Arrays.sort;
    import static java.util.Collections.emptyList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.Equivalence;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/IndexingHelperTest.java

                }
    
                @Override
                public List<Map<String, Object>> getDocumentList(final String index, final SearchCondition<SearchRequestBuilder> condition) {
                    return Collections.emptyList();
                }
            };
            ComponentUtil.register(client, "searchEngineClient");
            final DocList docList = new DocList();
            indexingHelper.sendDocuments(client, docList);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Jul 24 08:54:24 UTC 2024
    - 23.4K bytes
    - Viewed (0)
Back to top