Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 67 for specialized (0.23 sec)

  1. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        Thread t2 = newStartedThread(c2);
        awaitTermination(t1);
        awaitTermination(t2);
        assertEquals(SIZE * COUNTDOWN, c1.counts + c2.counts);
      }
    
      /** a deserialized serialized array holds same values */
      public void testSerialization() throws Exception {
        AtomicDoubleArray x = new AtomicDoubleArray(SIZE);
        for (int i = 0; i < SIZE; i++) {
          x.set(i, (double) -i);
        }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/FluentIterable.java

     *       parallelizing stream operations.
     *   <li>{@code FluentIterable} contains several features not available on {@code Stream}, which are
     *       noted in the method descriptions below.
     *   <li>Streams include primitive-specialized variants such as {@code IntStream}, the use of which
     *       is strongly recommended.
     *   <li>Streams are standard Java, not requiring a third-party dependency.
     * </ul>
     *
     * <h3>Example</h3>
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RegularImmutableMap.java

      @Override
      @J2ktIncompatible // serialization
      @GwtIncompatible // serialization
      Object writeReplace() {
        return super.writeReplace();
      }
    
      // This class is never actually serialized directly, but we have to make the
      // warning go away (and suppressing would suppress for all nested classes too)
      @J2ktIncompatible // serialization
      private static final long serialVersionUID = 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

          @SuppressWarnings("unchecked")
          K key = (K) stream.readObject();
          @SuppressWarnings("unchecked")
          V value = (V) stream.readObject();
          /*
           * requireNonNull is safe for a properly serialized multimap: We've already inserted a
           * collection for each key that we expect.
           */
          requireNonNull(map.get(key)).add(value);
        }
        setMap(map);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

        return keySet;
      }
    
      @Override
      public ImmutableSortedSet<K> descendingKeySet() {
        return keySet.descendingSet();
      }
    
      /**
       * Serialized type for all ImmutableSortedMap instances. It captures the logical contents and they
       * are reconstructed using public factory methods. This ensures that the implementation types
       * remain as implementation details.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableList.java

          // needed to deal with GWT integer overflow
        }
        return hashCode;
      }
    
      /*
       * Serializes ImmutableLists as their logical contents. This ensures that
       * implementation types do not leak into the serialized representation.
       */
      @J2ktIncompatible // serialization
      static class SerializedForm implements Serializable {
        final Object[] elements;
    
        SerializedForm(Object[] elements) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  7. android/guava/src/com/google/common/collect/Multisets.java

      private static <E extends @Nullable Object> boolean addAllImpl(
          Multiset<E> self, Multiset<? extends E> elements) {
        // It'd be nice if we could specialize for ImmutableMultiset here without also retaining
        // its code when it's not in scope...
        if (elements instanceof AbstractMapBasedMultiset) {
          return addAllImpl(self, (AbstractMapBasedMultiset<? extends E>) elements);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/SetsTest.java

        adder.accept(accumulator, SomeEnum.C);
        assertThat(set).containsExactly(SomeEnum.A, SomeEnum.B);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testImmutableEnumSet_serialized() {
        Set<SomeEnum> units = Sets.immutableEnumSet(SomeEnum.D, SomeEnum.B);
    
        assertThat(units).containsExactly(SomeEnum.B, SomeEnum.D).inOrder();
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/AbstractBiMap.java

         * Serialization stores the forward bimap, the inverse of this inverse.
         * Deserialization calls inverse() on the forward bimap and returns that
         * inverse.
         *
         * If a bimap and its inverse are serialized together, the deserialized
         * instances have inverse() methods that return the other.
         */
    
        @Override
        @ParametricNullness
        K checkKey(@ParametricNullness K key) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 14.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableSortedMap.java

        return keySet;
      }
    
      @Override
      public ImmutableSortedSet<K> descendingKeySet() {
        return keySet.descendingSet();
      }
    
      /**
       * Serialized type for all ImmutableSortedMap instances. It captures the logical contents and they
       * are reconstructed using public factory methods. This ensures that the implementation types
       * remain as implementation details.
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
Back to top