Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 64 for Truong (0.26 sec)

  1. guava-tests/test/com/google/common/graph/EndpointPairTest.java

        // unordered endpoints not OK for directed graph (undefined behavior)
        assertThat(edges).doesNotContain(EndpointPair.unordered(N1, N2));
    
        assertThat(edges).doesNotContain(EndpointPair.ordered(N2, N1)); // wrong order
        assertThat(edges).doesNotContain(EndpointPair.ordered(N2, N2)); // edge not present
        assertThat(edges).doesNotContain(EndpointPair.ordered(N3, N4)); // nodes not in graph
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/EndpointPairTest.java

        // unordered endpoints not OK for directed graph (undefined behavior)
        assertThat(edges).doesNotContain(EndpointPair.unordered(N1, N2));
    
        assertThat(edges).doesNotContain(EndpointPair.ordered(N2, N1)); // wrong order
        assertThat(edges).doesNotContain(EndpointPair.ordered(N2, N2)); // edge not present
        assertThat(edges).doesNotContain(EndpointPair.ordered(N3, N4)); // nodes not in graph
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

       */
      final void interruptTask() {
        // Since the Thread is replaced by DONE before run() invokes listeners or returns, if we succeed
        // in this CAS, there's no risk of interrupting the wrong thread or interrupting a thread that
        // isn't currently executing this task.
        Runnable currentRunner = get();
        if (currentRunner instanceof Thread) {
          Blocker blocker = new Blocker(this);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Sep 29 21:34:48 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/IntMath.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 | ((p ^ q) >> (Integer.SIZE - 1));
    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)
  5. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

       * speaking, impossible to make any hard guarantees in the presence of unsynchronized concurrent
       * modification. Fail-fast iterators throw {@code ConcurrentModificationException} on a
       * best-effort basis. Therefore, it would be wrong to write a program that depended on this
       * exception for its correctness: <i>the fail-fast behavior of iterators should be used only to
       * detect bugs.</i>
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  6. 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.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  7. guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

      void oldRepeat(long reps) {
        for (int i = 0; i < reps; i++) {
          String x = oldRepeat(originalString, count);
          if (x.length() != (originalString.length() * count)) {
            throw new RuntimeException("Wrong length: " + x);
          }
        }
      }
    
      private static String oldRepeat(String string, int count) {
        // If this multiplication overflows, a NegativeArraySizeException or
        // OutOfMemoryError is not far behind
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:24:24 GMT 2021
    - 3.3K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java

      }
    
      public void testContainsAll_wrongType() {
        Collection<WrongType> wrong = MinimalCollection.of(WrongType.VALUE);
        try {
          assertFalse(
              "containsAll(wrongType) should return false or throw", collection.containsAll(wrong));
        } catch (ClassCastException tolerated) {
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  9. guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

                return new Iterator<Integer>() {
                  @Override
                  public void remove() {
                    // Wrong exception type.
                    throw new IllegalArgumentException();
                  }
    
                  @Override
                  public Integer next() {
                    // Wrong exception type.
                    throw new UnsupportedOperationException();
                  }
    
                  @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/QuantilesAlgorithmTest.java

        for (QuantilesAlgorithm algorithm : NON_REFERENCE_ALGORITHMS) {
          Map<Integer, Double> quantiles = algorithm.multipleQuantiles(indexes, 100, dataset.clone());
          assertWithMessage("Wrong keys from " + algorithm).that(quantiles.keySet()).isEqualTo(indexes);
          for (int i : indexes) {
            assertWithMessage("Mismatch between %s and %s at %s", algorithm, REFERENCE_ALGORITHM, i)
                .that(quantiles.get(i))
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
Back to top