Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 610 for Implementation (0.14 sec)

  1. guava/src/com/google/common/math/IntMath.java

      public static boolean isPowerOfTwo(int x) {
        return x > 0 & (x & (x - 1)) == 0;
      }
    
      /**
       * Returns 1 if {@code x < y} as unsigned integers, and 0 otherwise. Assumes that x - y fits into
       * a signed int. The implementation is branch-free, and benchmarks suggest it is measurably (if
       * narrowly) faster than the straightforward ternary expression.
       */
      @VisibleForTesting
      static int lessThanBranchFree(int x, int y) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/CharMatcher.java

      }
    
      private static final int DISTINCT_CHARS = Character.MAX_VALUE - Character.MIN_VALUE + 1;
    
      /**
       * This is the actual implementation of {@link #precomputed}, but we bounce calls through a method
       * on {@link Platform} so that we can have different behavior in GWT.
       *
       * <p>This implementation tries to be smart in a number of ways. It recognizes cases where the
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RegularImmutableTable.java

    import java.util.Collections;
    import java.util.Comparator;
    import java.util.LinkedHashSet;
    import java.util.List;
    import java.util.Set;
    import javax.annotation.CheckForNull;
    
    /**
     * An implementation of {@link ImmutableTable} holding an arbitrary number of cells.
     *
     * @author Gregory Kick
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java

      }
    
      private void checkHelperVersion(ClassLoader classLoader, String expectedHelperClassName)
          throws Exception {
        // Make sure we are actually running with the expected helper implementation
        Class<?> abstractFutureClass = classLoader.loadClass(AggregateFutureState.class.getName());
        Field helperField = abstractFutureClass.getDeclaredField("ATOMIC_HELPER");
        helperField.setAccessible(true);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java

    import java.util.TreeSet;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A wrapper around {@code TreeSet} that aggressively checks to see if elements are mutually
     * comparable. This implementation passes the navigable set test suites.
     *
     * @author Louis Wasserman
     */
    @GwtIncompatible
    public final class SafeTreeSet<E> implements Serializable, NavigableSet<E> {
      @SuppressWarnings("unchecked")
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/BiMapTestSuiteBuilder.java

    import java.util.List;
    import java.util.Map.Entry;
    import java.util.Set;
    import junit.framework.TestSuite;
    
    /**
     * Creates, based on your criteria, a JUnit test suite that exhaustively tests a {@code BiMap}
     * implementation.
     *
     * @author Louis Wasserman
     */
    @GwtIncompatible
    public class BiMapTestSuiteBuilder<K, V>
        extends PerCollectionSizeTestSuiteBuilder<
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 26 19:46:10 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Platform.java

    final class Platform {
      /** Returns the platform preferred implementation of a map based on a hash table. */
      static <K extends @Nullable Object, V extends @Nullable Object>
          Map<K, V> newHashMapWithExpectedSize(int expectedSize) {
        return CompactHashMap.createWithExpectedSize(expectedSize);
      }
    
      /**
       * Returns the platform preferred implementation of an insertion ordered map based on a hash
       * table.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Multiset.java

       * any {@code Entry} instances already retrieved from the entry set (this is
       * implementation-dependent). Furthermore, implementations are not required to support
       * modifications to the entry set at all, and the {@code Entry} instances themselves don't even
       * have methods for modification. See the specific implementation class for more details on how
       * its entry set handles modifications.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ForwardingMapEntry.java

     * should override {@code equals} as well, either providing your own implementation, or delegating
     * to the provided {@code standardEquals} method.
     *
     * <p>Each of the {@code standard} methods, where appropriate, use {@link Objects#equal} to test
     * equality for both keys and values. This may not be the desired behavior for map implementations
     * that use non-standard notions of key equality, such as the entry of a {@code SortedMap} whose
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Mar 19 19:28:11 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. futures/listenablefuture1/src/com/google/common/util/concurrent/ListenableFuture.java

     * family. <b>Avoid</b> creating a mock or stub {@code Future}. Mock and stub implementations are
     * fragile because they assume that only certain methods will be called and because they often
     * implement subtleties of the API improperly.
     *
     * <p><b>Custom implementation</b>: Avoid implementing {@code ListenableFuture} from scratch. If you
     * can't get by with the standard implementations, prefer to derive a new {@code Future} instance
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 26 21:13:41 UTC 2023
    - 8K bytes
    - Viewed (0)
Back to top