Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 40 for Truong (0.09 sec)

  1. android/guava/src/com/google/common/math/LongMath.java

        if (rem == 0) {
          return div;
        }
    
        /*
         * Normal Java division rounds towards 0, consistently with RoundingMode.DOWN. We just have to
         * 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 | (int) ((p ^ q) >> (Long.SIZE - 1));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MapsTest.java

        // Ensure that referenceMap, which doesn't use WithExpectedSize, ends up with the same table
        // size as the other two maps. If it ended up with a smaller size that would imply that we
        // computed the wrong initial capacity.
        for (int i = 0; i < size; i++) {
          referenceMap.put(i, null);
        }
        assertWithMessage("table size after adding " + size + " elements")
            .that(initialBuckets)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 67.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Multiset.java

       *
       * <p>This method refines {@link Collection#remove} to further specify that it <b>may not</b>
       * throw an exception in response to {@code element} being null or of the wrong type.
       *
       * <p>To both remove the element and obtain the previous count of that element, use {@link
       * #remove(Object, int) remove}{@code (element, 1)} instead.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/BooleansTest.java

        assertThat(Booleans.asList(ARRAY_FALSE_TRUE).size()).isEqualTo(2);
      }
    
      @SuppressWarnings("BooleanArrayIndexOfBoolean")
      public void testAsListIndexOf() {
        assertThat(Booleans.asList(EMPTY).indexOf((Object) "wrong type")).isEqualTo(-1);
        assertThat(Booleans.asList(EMPTY).indexOf(true)).isEqualTo(-1);
        assertThat(Booleans.asList(ARRAY_FALSE).indexOf(true)).isEqualTo(-1);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 15:43:29 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

       * @throws IllegalArgumentException if the size of {@code data} isn't a multiple of 3
       * @throws ClassCastException if a data element has the wrong type
       */
      protected abstract Table<String, Integer, C> create(@Nullable Object... data);
    
      protected void assertSize(int expectedSize) {
        assertEquals(expectedSize, table.size());
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 16:54:11 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Joiner.java

     * static final} constants.
     *
     * <pre>{@code
     * // Bad! Do not do this!
     * Joiner joiner = Joiner.on(',');
     * joiner.skipNulls(); // does nothing!
     * return joiner.join("wrong", null, "wrong");
     * }</pre>
     *
     * <p>See the Guava User Guide article on <a
     * href="https://github.com/google/guava/wiki/StringsExplained#joiner">{@code Joiner}</a>.
     *
     * @author Kevin Bourrillion
     * @since 2.0
     */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 18.6K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

          return; // there's nothing to test
        }
        @Nullable Object[] params = buildParamList(invokable, paramIndex);
        try {
          @SuppressWarnings("unchecked") // We'll get a runtime exception if the type is wrong.
          Invokable<Object, ?> unsafe = (Invokable<Object, ?>) invokable;
          unsafe.invoke(instance, params);
          Assert.fail(
              "No exception thrown for parameter at index "
                  + paramIndex
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

       * transitionService in the wrong order due to a race. Due to the fact that it is a race this test
       * isn't guaranteed to expose the issue, but it is at least likely to become flaky if the race
       * sneaks back in, and in this case flaky means something is definitely wrong.
       *
       * <p>Before the bug was fixed this test would fail at least 30% of the time.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 02 17:20:27 UTC 2023
    - 23.2K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

                  + "IllegalArgumentException or UnsupportedOperationException");
        } catch (IllegalArgumentException | UnsupportedOperationException expected) {
        }
      }
    
      // TODO: test adding element of wrong type
    
      /**
       * Returns {@link Method} instances for the {@code setCount()} tests that assume multisets support
       * duplicates so that the test of {@code Multisets.forSet()} can suppress them.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/net/InetAddresses.java

        }
        return null;
      }
    
      @CheckForNull
      private static byte[] textToNumericFormatV4(String ipString) {
        if (IPV4_DELIMITER_MATCHER.countIn(ipString) + 1 != IPV4_PART_COUNT) {
          return null; // Wrong number of parts
        }
    
        byte[] bytes = new byte[IPV4_PART_COUNT];
        int start = 0;
        // Iterate through the parts of the ip string.
        // Invariant: start is always the beginning of an octet.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 47.1K bytes
    - Viewed (0)
Back to top