Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 245 for Publish (0.04 sec)

  1. android/guava-tests/test/com/google/common/primitives/BytesTest.java

        byte[] array = {(byte) 0, (byte) 1, (byte) 2, (byte) 3};
        List<Byte> list = Bytes.asList(array);
        assertThat(Bytes.toArray(list.subList(1, 3))).isEqualTo(new byte[] {(byte) 1, (byte) 2});
        assertThat(Bytes.toArray(list.subList(2, 2))).isEqualTo(new byte[] {});
      }
    
      // `primitives` can't depend on `collect`, so this is what the prod code has to return.
      @SuppressWarnings("EmptyList")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/IterablesTest.java

        // Changes after are not
        list.set(0, 5);
    
        assertEquals(ImmutableList.of(3, 4), first);
      }
    
      @J2ktIncompatible // Arrays.asList(...).subList() doesn't implement RandomAccess in J2KT.
      @GwtIncompatible // Arrays.asList(...).subList doesn't implement RandomAccess in GWT
      public void testPartitionRandomAccessInput() {
        Iterable<Integer> source = asList(1, 2, 3);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

                    .named("ImmutableLongArray.asList, head subList"),
                ListTestSuiteBuilder.using(new ImmutableLongArrayTailSubListAsListGenerator())
                    .named("ImmutableLongArray.asList, tail subList"),
                ListTestSuiteBuilder.using(new ImmutableLongArrayMiddleSubListAsListGenerator())
                    .named("ImmutableLongArray.asList, middle subList"));
    
        TestSuite suite = new TestSuite();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(SEVERAL)
      public void testPollFirst() {
        assertEquals(a, navigableSet.pollFirst());
        assertEquals(values.subList(1, values.size()), copyToList(navigableSet));
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      public void testPollFirstUnsupported() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableListTest.java

                .named("ImmutableList, head subList")
                .withFeatures(CollectionSize.ANY, SERIALIZABLE, ALLOWS_NULL_QUERIES)
                .createTestSuite());
        suite.addTest(
            ListTestSuiteBuilder.using(new ImmutableListTailSubListGenerator())
                .named("ImmutableList, tail subList")
                .withFeatures(CollectionSize.ANY, SERIALIZABLE, ALLOWS_NULL_QUERIES)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/OneSizeGenerator.java

        SampleElements<E> samples = samples();
        List<E> allSampleElements =
            asList(samples.e0(), samples.e1(), samples.e2(), samples.e3(), samples.e4());
        return new ArrayList<>(allSampleElements.subList(0, howMany));
      }
    
      @Override
      public CollectionSize getCollectionSize() {
        return collectionSize;
      }
    
      @Override
      public Iterable<E> order(List<E> insertionOrder) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

        manyValuesAccumulatorByAddAndAddAll.addAll(MANY_VALUES.subList(1, MANY_VALUES.size()));
    
        manyValuesAccumulatorByAddAllStats = new StatsAccumulator();
        manyValuesAccumulatorByAddAllStats.addAll(
            Stats.of(MANY_VALUES.subList(0, MANY_VALUES.size() / 2)));
        manyValuesAccumulatorByAddAllStats.addAll(
            Stats.of(MANY_VALUES.subList(MANY_VALUES.size() / 2, MANY_VALUES.size())));
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/Booleans.java

          // checkNotNull for GWT (do not optimize)
          array[start + index] = checkNotNull(element);
          return oldValue;
        }
    
        @Override
        public List<Boolean> subList(int fromIndex, int toIndex) {
          int size = size();
          checkPositionIndexes(fromIndex, toIndex, size);
          if (fromIndex == toIndex) {
            return Collections.emptyList();
          }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/primitives/Booleans.java

          // checkNotNull for GWT (do not optimize)
          array[start + index] = checkNotNull(element);
          return oldValue;
        }
    
        @Override
        public List<Boolean> subList(int fromIndex, int toIndex) {
          int size = size();
          checkPositionIndexes(fromIndex, toIndex, size);
          if (fromIndex == toIndex) {
            return Collections.emptyList();
          }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/util/QueryResponseList.java

        }
    
        @Override
        public int size() {
            return parent.size();
        }
    
        @Override
        public List<Map<String, Object>> subList(final int fromIndex, final int toIndex) {
            return parent.subList(fromIndex, toIndex);
        }
    
        @Override
        public Object[] toArray() {
            return parent.toArray();
        }
    
        @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 14.5K bytes
    - Viewed (0)
Back to top