Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 189 for emptyList (0.1 sec)

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

    import static com.google.common.collect.testing.features.MapFeature.ALLOWS_ANY_NULL_QUERIES;
    import static com.google.common.truth.Truth.assertThat;
    import static java.util.Collections.emptyList;
    import static java.util.Collections.emptySet;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    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
    - 25.4K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

      apply {
        for (e in suppressed) addSuppressed(e)
      }
    
    internal inline fun <T> Iterable<T>.filterList(predicate: T.() -> Boolean): List<T> {
      var result: List<T> = emptyList()
      for (i in this) {
        if (predicate(i)) {
          if (result.isEmpty()) result = mutableListOf()
          (result as MutableList<T>).add(i)
        }
      }
      return result
    }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. android/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. src/main/java/org/codelibs/fess/dict/synonym/SynonymFile.java

            if (synonymItemList == null) {
                reload(null);
            }
    
            if (offset >= synonymItemList.size() || offset < 0) {
                return new PagingList<>(Collections.<SynonymItem> emptyList(), offset, size, synonymItemList.size());
            }
    
            int toIndex = offset + size;
            if (toIndex > synonymItemList.size()) {
                toIndex = synonymItemList.size();
            }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java

                        queryList.add(termQuery);
                        return queryList;
                    }
                }
            }
            return Collections.emptyList();
        }
    
        public static String createBulkLine(final String index, final String type, final SuggestItem item) {
            final Map<String, Object> firstLineMap = new HashMap<>();
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptor.java

                    .collect(Collectors.toList()));
            this.setId(original.getId());
            this.setIsolatedRealm(original.isIsolatedRealm());
            this.setSource(null);
            this.setDependencies(Collections.emptyList()); // TODO: v4
            this.setDependencyNode(null); // TODO: v4
            this.pluginDescriptorV4 = original;
        }
    
        // ----------------------------------------------------------------------
        //
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/primitives/Chars.java

       * @param backingArray the array to back the list
       * @return a list view of the array
       */
      public static List<Character> asList(char... backingArray) {
        if (backingArray.length == 0) {
          return Collections.emptyList();
        }
        return new CharArrayAsList(backingArray);
      }
    
      @GwtCompatible
      private static class CharArrayAsList extends AbstractList<Character>
          implements RandomAccess, Serializable {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

                    // When this happens we have a Maven 1.x POM, or some invalid POM.
                    // It should have never found its way into Maven 2.x repository but it did.
                    dependencies = Collections.emptyList();
                } else {
                    dependencies = rel.project.getModel().getDependencies();
    
                    DependencyManagement depMgmt = rel.project.getModel().getDependencyManagement();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  9. android/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)
  10. 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: Thu Oct 17 15:52:18 UTC 2024
    - 27.9K bytes
    - Viewed (0)
Back to top