Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 64 for signin (0.17 sec)

  1. guava/src/com/google/common/cache/RemovalListener.java

    @GwtCompatible
    @FunctionalInterface
    @ElementTypesAreNonnullByDefault
    public interface RemovalListener<K, V> {
      /**
       * Notifies the listener that a removal occurred at some point in the past.
       *
       * <p>This does not always signify that the key is now absent from the cache, as it may have
       * already been re-added.
       */
      // Technically should accept RemovalNotification<? extends K, ? extends V>, but because
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

        for (long a : UNSIGNED_INTS) {
          for (long b : UNSIGNED_INTS) {
            int cmpAsLongs = Longs.compare(a, b);
            int cmpAsUInt = UnsignedInts.compare((int) a, (int) b);
            assertThat(Integer.signum(cmpAsUInt)).isEqualTo(Integer.signum(cmpAsLongs));
          }
        }
      }
    
      public void testMax_noArgs() {
        try {
          UnsignedInts.max();
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 12.7K bytes
    - Viewed (1)
  3. android/guava/src/com/google/common/math/IntMath.java

         * deal with the cases where rounding towards 0 is wrong, which typically depends on the sign of
         * p / q.
         *
         * signum is 1 if p and q are both nonnegative or both negative, and -1 otherwise.
         */
        int signum = 1 | ((p ^ q) >> (Integer.SIZE - 1));
        boolean increment;
        switch (mode) {
          case UNNECESSARY:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/DoubleMathTest.java

            int expected = DoubleMath.fuzzyEquals(a, b, tolerance) ? 0 : Double.compare(a, b);
            int actual = DoubleMath.fuzzyCompare(a, b, tolerance);
            assertEquals(Integer.signum(expected), Integer.signum(actual));
          }
        }
      }
    
      public void testFuzzyCompareBadTolerance() {
        for (double tolerance : BAD_TOLERANCE_CANDIDATES) {
          try {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

        };
        int[] bases = {2, 5, 7, 8, 10, 16};
        for (int base : bases) {
          for (String x : tests) {
            BigInteger xValue = new BigInteger(x, 16);
            long xLong = xValue.longValue(); // signed
            assertThat(UnsignedLongs.toString(xLong, base)).isEqualTo(xValue.toString(base));
          }
        }
      }
    
      public void testJoin() {
        assertThat(UnsignedLongs.join(",")).isEmpty();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:36:17 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/InternersTest.java

        Interner<Integer> pool = Interners.newWeakInterner();
        assertSame(canonical, pool.intern(canonical));
    
        WeakReference<Integer> signal = new WeakReference<>(canonical);
        canonical = null; // Hint to the JIT that canonical is unreachable
    
        GcFinalization.awaitClear(signal);
        assertSame(not, pool.intern(not));
      }
    
      public void testAsFunction_simplistic() {
        String canonical = "a";
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/OverflowAvoidingLockSupport.java

    import java.util.concurrent.locks.LockSupport;
    import javax.annotation.CheckForNull;
    
    /**
     * Works around an android bug, where parking for more than INT_MAX seconds can produce an abort
     * signal on 32 bit devices running Android Q.
     */
    @J2ktIncompatible
    @ElementTypesAreNonnullByDefault
    final class OverflowAvoidingLockSupport {
      // Represents the max nanoseconds representable on a linux timespec with a 32 bit tv_sec
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/BigDecimalMath.java

        @Override
        double roundToDoubleArbitrarily(BigDecimal bigDecimal) {
          return bigDecimal.doubleValue();
        }
    
        @Override
        int sign(BigDecimal bigDecimal) {
          return bigDecimal.signum();
        }
    
        @Override
        BigDecimal toX(double d, RoundingMode mode) {
          return new BigDecimal(d);
        }
    
        @Override
        BigDecimal minus(BigDecimal a, BigDecimal b) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 23 18:45:50 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

          for (int j = 0; j < VALUES.length; j++) {
            byte x = VALUES[i];
            byte y = VALUES[j];
            // note: spec requires only that the sign is the same
            assertWithMessage(x + ", " + y)
                .that(Math.signum(Ints.compare(i, j)))
                .isEqualTo(Math.signum(UnsignedBytes.compare(x, y)));
          }
        }
      }
    
      public void testMax_noArgs() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/UnsignedInts.java

     * signed versions of methods for which signedness is an issue.
     *
     * <p>In addition, this class provides several static methods for converting an {@code int} to a
     * {@code String} and a {@code String} to an {@code int} that treat the {@code int} as an unsigned
     * number.
     *
     * <p>Users of these utilities must be <i>extremely careful</i> not to mix up signed and unsigned
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 13.4K bytes
    - Viewed (0)
Back to top