Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for Perm (0.22 sec)

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

        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);
          }
        }
      }
    
      /** Regression test for bug found. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

              @Override
              public void checkAccess(Thread t) {
                throw new SecurityException();
              }
    
              @Override
              public void checkPermission(Permission perm) {
                // Do nothing so we can clear the security manager at the end
              }
            });
        try {
          final String oldName = Thread.currentThread().getName();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Collections2.java

       * <pre>{@code
       * for (List<String> perm : orderedPermutations(asList("b", "c", "a"))) {
       *   println(perm);
       * }
       * // -> ["a", "b", "c"]
       * // -> ["a", "c", "b"]
       * // -> ["b", "a", "c"]
       * // -> ["b", "c", "a"]
       * // -> ["c", "a", "b"]
       * // -> ["c", "b", "a"]
       *
       * for (List<Integer> perm : orderedPermutations(asList(1, 2, 2, 1))) {
       *   println(perm);
       * }
       * // -> [1, 1, 2, 2]
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

              @Override
              public void checkAccess(Thread t) {
                throw new SecurityException();
              }
    
              @Override
              public void checkPermission(Permission perm) {
                // Do nothing so we can clear the security manager at the end
              }
            });
        try {
          final String oldName = Thread.currentThread().getName();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        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);
          }
        }
      }
    
      /** Regression test for bug found. */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Collections2.java

       * <pre>{@code
       * for (List<String> perm : orderedPermutations(asList("b", "c", "a"))) {
       *   println(perm);
       * }
       * // -> ["a", "b", "c"]
       * // -> ["a", "c", "b"]
       * // -> ["b", "a", "c"]
       * // -> ["b", "c", "a"]
       * // -> ["c", "a", "b"]
       * // -> ["c", "b", "a"]
       *
       * for (List<Integer> perm : orderedPermutations(asList(1, 2, 2, 1))) {
       *   println(perm);
       * }
       * // -> [1, 1, 2, 2]
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        AdjustablePolicy(Permission... permissions) {
          for (Permission permission : permissions) perms.add(permission);
        }
    
        void addPermission(Permission perm) {
          perms.add(perm);
        }
    
        void clearPermissions() {
          perms = new Permissions();
        }
    
        @Override
        public PermissionCollection getPermissions(CodeSource cs) {
          return perms;
        }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

        }
    
        @Override
        public void finalizeReferent() {}
      }
    
      private static class PermissivePolicy extends Policy {
        @Override
        public boolean implies(ProtectionDomain pd, Permission perm) {
          return true;
        }
      }
    
      private WeakReference<ClassLoader> useFrqInSeparateLoader() throws Exception {
        final ClassLoader myLoader = getClass().getClassLoader();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        AdjustablePolicy(Permission... permissions) {
          for (Permission permission : permissions) perms.add(permission);
        }
    
        void addPermission(Permission perm) {
          perms.add(perm);
        }
    
        void clearPermissions() {
          perms = new Permissions();
        }
    
        public PermissionCollection getPermissions(CodeSource cs) {
          return perms;
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

        }
    
        @Override
        public void finalizeReferent() {}
      }
    
      private static class PermissivePolicy extends Policy {
        @Override
        public boolean implies(ProtectionDomain pd, Permission perm) {
          return true;
        }
      }
    
      private WeakReference<ClassLoader> useFrqInSeparateLoader() throws Exception {
        final ClassLoader myLoader = getClass().getClassLoader();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
Back to top