Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for permutations (0.04 sec)

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

        assertNextPermutation(newArrayList("a", "c", "b"), permutations);
        assertNextPermutation(newArrayList("b", "a", "c"), permutations);
        assertNextPermutation(newArrayList("b", "c", "a"), permutations);
        assertNextPermutation(newArrayList("c", "a", "b"), permutations);
        assertNextPermutation(newArrayList("c", "b", "a"), permutations);
        assertNoMorePermutations(permutations);
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/Collections2Test.java

        assertNextPermutation(newArrayList("a", "c", "b"), permutations);
        assertNextPermutation(newArrayList("b", "a", "c"), permutations);
        assertNextPermutation(newArrayList("b", "c", "a"), permutations);
        assertNextPermutation(newArrayList("c", "a", "b"), permutations);
        assertNextPermutation(newArrayList("c", "b", "a"), permutations);
        assertNoMorePermutations(permutations);
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Collections2.java

          int permutations = 1;
          int n = 1;
          int r = 1;
          while (n < sortedInputList.size()) {
            int comparison = comparator.compare(sortedInputList.get(n - 1), sortedInputList.get(n));
            if (comparison < 0) {
              // We move to the next non-repeated element.
              permutations = IntMath.saturatedMultiply(permutations, IntMath.binomial(n, r));
              r = 0;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/Utf8Test.java

      }
    
      /** Tests that round tripping of all three byte permutations work. */
      @GwtIncompatible // java.nio.charset.Charset
    
      public void testIsWellFormed_3Bytes() {
        testBytes(3, EXPECTED_THREE_BYTE_ROUNDTRIPPABLE_COUNT);
      }
    
      /**
       * Tests that round tripping of a sample of four byte permutations work. All permutations are
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/util/DES.java

            final int count = length / 8;
    
            for (int i = 0; i < count; i++) {
                encrypt(cipherText, i * 8, clearText, i * 8);
            }
    
            return clearText;
        }
    
        // Tables, permutations, S-boxes, etc.
    
        private static byte[] bytebit =
                { (byte) 0x80, (byte) 0x40, (byte) 0x20, (byte) 0x10, (byte) 0x08, (byte) 0x04, (byte) 0x02, (byte) 0x01 };
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  6. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

      /** Non-NPE RuntimeException. */
      public static class FooException extends RuntimeException {
        private static final long serialVersionUID = 1L;
      }
    
      /**
       * Class for testing all permutations of static/non-static one-argument methods using
       * methodParameter().
       */
      @SuppressWarnings("unused") // used by reflection
      public static class OneArg {
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        }
      }
    
      public void testRemoveAt_exhaustive() {
        int size = reduceExponentIfGwt(8);
        List<Integer> expected = createOrderedList(size);
        for (Collection<Integer> perm : Collections2.permutations(expected)) {
          for (int i = 0; i < perm.size(); i++) {
            MinMaxPriorityQueue<Integer> q = MinMaxPriorityQueue.create(perm);
            q.removeAt(i);
            assertIntactUsingStartedWith(perm, q);
          }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 36.1K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

        // In practice, wildcards are always in the leftmost position. For now, this implementation
        // cheats and does not attempt every possible permutation. Instead, it only considers wildcards
        // in the leftmost position. We assert this fact when we generate the public suffix file. If
        // this assertion ever fails we'll need to refactor this implementation.
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.5K bytes
    - Viewed (0)
Back to top