Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for specialized (0.21 sec)

  1. android/guava/src/com/google/common/collect/RegularImmutableAsList.java

    import com.google.common.annotations.J2ktIncompatible;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An {@link ImmutableAsList} implementation specialized for when the delegate collection is already
     * backed by an {@code ImmutableList} or array.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible(emulated = true)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Optional.java

     *   <li>{@code java.util.Optional} has the additional methods {@code ifPresent}, {@code filter},
     *       {@code flatMap}, and {@code orElseThrow}.
     *   <li>{@code java.util} offers the primitive-specialized versions {@code OptionalInt}, {@code
     *       OptionalLong} and {@code OptionalDouble}, the use of which is recommended; Guava does not
     *       have these.
     * </ul>
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/EnumMultiset.java

    import java.util.Arrays;
    import java.util.Iterator;
    import java.util.NoSuchElementException;
    import java.util.function.ObjIntConsumer;
    import javax.annotation.CheckForNull;
    
    /**
     * Multiset implementation specialized for enum elements, supporting all single-element operations
     * in O(1).
     *
     * <p>See the Guava User Guide article on <a href=
     * "https://github.com/google/guava/wiki/NewCollectionTypesExplained#multiset">{@code Multiset}</a>.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/FilesTest.java

        assertTrue(Arrays.equals(I18N.getBytes(Charsets.UTF_8), Files.asByteSource(i18nFile).read()));
      }
    
      /** A {@link File} that provides a specialized value for {@link File#length()}. */
      private static class BadLengthFile extends File {
    
        private final long badLength;
    
        public BadLengthFile(File delegate, long badLength) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/FilesTest.java

        assertTrue(Arrays.equals(I18N.getBytes(Charsets.UTF_8), Files.asByteSource(i18nFile).read()));
      }
    
      /** A {@link File} that provides a specialized value for {@link File#length()}. */
      private static class BadLengthFile extends File {
    
        private final long badLength;
    
        public BadLengthFile(File delegate, long badLength) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

      }
    
      // Inner Classes
    
      /**
       * Segments are specialized versions of hash tables. This subclass inherits from ReentrantLock
       * opportunistically, just to simplify some locking and avoid separate construction.
       */
      @SuppressWarnings("serial") // This class is never serialized.
      abstract static class Segment<
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/LocalCache.java

      }
    
      // Inner Classes
    
      /**
       * Segments are specialized versions of hash tables. This subclass inherits from ReentrantLock
       * opportunistically, just to simplify some locking and avoid separate construction.
       */
      @SuppressWarnings("serial") // This class is never serialized.
      static class Segment<K, V> extends ReentrantLock {
    
        /*
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableBiMap.java

      static final RegularImmutableBiMap<Object, Object> EMPTY =
          new RegularImmutableBiMap<Object, Object>();
    
      // This reference is used both by the GWT compiler to infer the elements
      // of the lists that needs to be serialized.
      private ImmutableBiMap<V, K> inverse;
    
      @SuppressWarnings("unchecked") // used only for the empty map, which works for any types
      RegularImmutableBiMap() {
        super(new RegularImmutableMap<K, V>(new HashMap<K, V>()));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Suppliers.java

       *
       * <p>The returned supplier is thread-safe. The delegate's {@code get()} method will be invoked at
       * most once unless the underlying {@code get()} throws an exception. The supplier's serialized
       * form does not contain the cached value, which will be recalculated when {@code get()} is called
       * on the deserialized instance.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  10. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10K bytes
    - Viewed (0)
Back to top