Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Branco (0.29 sec)

  1. guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        assertEquals(Country.CANADA, bimap2.get(Currency.DOLLAR));
        assertEquals(bimap1, bimap2);
        bimap2.inverse().put(Country.SWITZERLAND, Currency.FRANC);
        assertEquals(Country.SWITZERLAND, bimap2.get(Currency.FRANC));
        assertNull(bimap1.get(Currency.FRANC));
        assertFalse(bimap2.equals(bimap1));
    
        /* Test that it can be empty. */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        assertEquals(Country.CANADA, bimap2.get(Currency.DOLLAR));
        assertEquals(bimap1, bimap2);
        bimap2.inverse().put(Country.SWITZERLAND, Currency.FRANC);
        assertEquals(Country.SWITZERLAND, bimap2.get(Currency.FRANC));
        assertNull(bimap1.get(Currency.FRANC));
        assertFalse(bimap2.equals(bimap1));
    
        /* Test that it can be empty. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/IntMath.java

        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) {
    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. android/guava/src/com/google/common/math/LongMath.java

        return x > 0 & (x & (x - 1)) == 0;
      }
    
      /**
       * Returns 1 if {@code x < y} as unsigned longs, and 0 otherwise. Assumes that x - y fits into a
       * signed long. The implementation is branch-free, and benchmarks suggest it is measurably faster
       * than the straightforward ternary expression.
       */
      @VisibleForTesting
      static int lessThanBranchFree(long x, long y) {
        // Returns the sign bit of x - y.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/LinkedListMultimap.java

          KeyList<K, V> keyList = requireNonNull(keyToKeyList.remove(node.key));
          keyList.count = 0;
          modCount++;
        } else {
          // requireNonNull is safe (under the conditions listed in the comment in the branch above).
          KeyList<K, V> keyList = requireNonNull(keyToKeyList.get(node.key));
          keyList.count--;
    
          if (node.previousSibling == null) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 27.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

                .put(key1, 1)
                .put(key2, 2)
                .put(key1, 3)
                .put(key2, 4)
                .buildKeepingLast();
        assertMapEquals(map, key1, 3, key2, 4);
      }
    
      // The java7 branch has different code depending on whether the entry indexes fit in a byte,
      // short, or int. The small table in testBuildKeepingLast_allowsOverwrite will test the byte
      // case. This method tests the short case.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 27 13:27:08 GMT 2024
    - 41.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/BigIntegerMath.java

         */
    
        if (approxCmp > 0) {
          /*
           * The code is written so that even completely incorrect approximations will still yield the
           * correct answer eventually, but in practice this branch should almost never be entered, and
           * even then the loop should not run more than once.
           */
          do {
            approxLog10--;
            approxPow = approxPow.divide(BigInteger.TEN);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

                .put(key1, 1)
                .put(key2, 2)
                .put(key1, 3)
                .put(key2, 4)
                .buildKeepingLast();
        assertMapEquals(map, key1, 3, key2, 4);
      }
    
      // The java7 branch has different code depending on whether the entry indexes fit in a byte,
      // short, or int. The small table in testBuildKeepingLast_allowsOverwrite will test the byte
      // case. This method tests the short case.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 14:39:16 GMT 2024
    - 37.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/DoubleMath.java

      public static boolean fuzzyEquals(double a, double b, double tolerance) {
        MathPreconditions.checkNonNegative("tolerance", tolerance);
        return Math.copySign(a - b, 1.0) <= tolerance
            // copySign(x, 1.0) is a branch-free version of abs(x), but with different NaN semantics
            || (a == b) // needed to ensure that infinities equal themselves
            || (Double.isNaN(a) && Double.isNaN(b));
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
Back to top