Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for characteristics (0.2 sec)

  1. guava-testlib/src/com/google/common/testing/CollectorTester.java

      public final CollectorTester<T, A, R> expectCollects(R expectedResult, T... inputs) {
        List<T> list = Arrays.asList(inputs);
        doExpectCollects(expectedResult, list);
        if (collector.characteristics().contains(Collector.Characteristics.UNORDERED)) {
          Collections.reverse(list);
          doExpectCollects(expectedResult, list);
        }
        return this;
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java

    @SuppressWarnings("serial") // we're overriding default serialization
    @ElementTypesAreNonnullByDefault
    public abstract class ImmutableCollection<E> extends AbstractCollection<E> implements Serializable {
      static final int SPLITERATOR_CHARACTERISTICS =
          Spliterator.IMMUTABLE | Spliterator.NONNULL | Spliterator.ORDERED;
    
      ImmutableCollection() {}
    
      public abstract UnmodifiableIterator<E> iterator();
    
      public boolean contains(@Nullable Object object) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/MoreCollectors.java

          Collector.of(
              ToOptionalState::new,
              ToOptionalState::add,
              ToOptionalState::combine,
              ToOptionalState::getOptional,
              Collector.Characteristics.UNORDERED);
    
      /**
       * A collector that converts a stream of zero or one elements to an {@code Optional}.
       *
       * @throws IllegalArgumentException if the stream consists of two or more elements.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/IndexedImmutableSet.java

      @Override
      public UnmodifiableIterator<E> iterator() {
        return asList().iterator();
      }
    
      @Override
      public Spliterator<E> spliterator() {
        return CollectSpliterators.indexed(size(), SPLITERATOR_CHARACTERISTICS, this::get);
      }
    
      @Override
      public void forEach(Consumer<? super E> consumer) {
        checkNotNull(consumer);
        int n = size();
        for (int i = 0; i < n; i++) {
          consumer.accept(get(i));
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableSortedAsList.java

      }
    
      @Override
      public Spliterator<E> spliterator() {
        return CollectSpliterators.indexed(
            size(),
            ImmutableList.SPLITERATOR_CHARACTERISTICS | Spliterator.SORTED | Spliterator.DISTINCT,
            delegateList()::get,
            comparator());
      }
    
      // redeclare to help optimizers with b/310253115
      @SuppressWarnings("RedundantOverride")
      @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/LongAdder.java

     * sum that is used for purposes such as collecting statistics, not for fine-grained synchronization
     * control. Under low update contention, the two classes have similar characteristics. But under
     * high contention, expected throughput of this class is significantly higher, at the expense of
     * higher space consumption.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 5.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/LongAdder.java

     * sum that is used for purposes such as collecting statistics, not for fine-grained synchronization
     * control. Under low update contention, the two classes have similar characteristics. But under
     * high contention, expected throughput of this class is significantly higher, at the expense of
     * higher space consumption.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 5.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/LongAdder.java

     * sum that is used for purposes such as collecting statistics, not for fine-grained synchronization
     * control. Under low update contention, the two classes have similar characteristics. But under
     * high contention, expected throughput of this class is significantly higher, at the expense of
     * higher space consumption.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 5.5K bytes
    - Viewed (0)
Back to top