Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 242 for pre (0.11 sec)

  1. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

     * final WeakHashMap<Object, Object> map = new WeakHashMap<>();
     * map.put(new Object(), Boolean.TRUE);
     * GcFinalization.awaitDone(new FinalizationPredicate() {
     *   public boolean isDone() {
     *     return map.isEmpty();
     *   }
     * });
     * }</pre>
     *
     * <p>Even if your non-test code does not use finalization, you can use this class to test for
     * leaks, by ensuring that objects are no longer strongly referenced:
     *
     * <pre>{@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Throwables.java

       *
       * <pre>
       * for (Foo foo : foos) {
       *   try {
       *     foo.bar();
       *   } catch (BarException | RuntimeException | Error t) {
       *     failure = t;
       *   }
       * }
       * if (failure != null) {
       *   throwIfInstanceOf(failure, BarException.class);
       *   throwIfUnchecked(failure);
       *   throw new AssertionError(failure);
       * }
       * </pre>
       *
       * @since 20.0
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Throwables.java

       *
       * <pre>
       * for (Foo foo : foos) {
       *   try {
       *     foo.bar();
       *   } catch (BarException | RuntimeException | Error t) {
       *     failure = t;
       *   }
       * }
       * if (failure != null) {
       *   throwIfInstanceOf(failure, BarException.class);
       *   throwIfUnchecked(failure);
       *   throw new AssertionError(failure);
       * }
       * </pre>
       *
       * @since 20.0
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

     * then Lock B, while another thread acquires Lock B, and then Lock A:
     *
     * <pre>
     * Thread1: acquire(LockA) --X acquire(LockB)
     * Thread2: acquire(LockB) --X acquire(LockA)
     * </pre>
     *
     * <p>Neither thread will progress because each is waiting for the other. In more complex
     * applications, cycles can arise from interactions among more than 2 locks:
     *
     * <pre>
     * Thread1: acquire(LockA) --X acquire(LockB)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/lang/ObjectUtil.java

         * <p>
         * 次のように使います.
         * </p>
         *
         * <pre>
         * ObjectUtil.defaultValue(null, "NULL")  = "NULL"
         * ObjectUtil.defaultValue(null, 1)    = 1
         * ObjectUtil.defaultValue(Boolean.TRUE, true) = Boolean.TRUE
         * ObjectUtil.defaultValue(null, null) = null
         * </pre>
         *
         * @param <T>
         *            オブジェクトの型
         * @param t
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/TreeTraverser.java

     * implement it:
     *
     * <pre>{@code
     * // won't work
     * TreeTraverser<NodeType> traverser = node -> node.getChildNodes();
     * }</pre>
     *
     * Instead, you can pass a lambda expression to the {@code using} factory method:
     *
     * <pre>{@code
     * TreeTraverser<NodeType> traverser = TreeTraverser.using(node -> node.getChildNodes());
     * }</pre>
     *
     * @author Louis Wasserman
     * @since 15.0
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Optional.java

       * {@code Optional} class. However, this common usage:
       *
       * <pre>{@code
       * for (Foo foo : possibleFoo.asSet()) {
       *   doSomethingWith(foo);
       * }
       * }</pre>
       *
       * ... can be replaced with:
       *
       * <pre>{@code
       * possibleFoo.ifPresent(foo -> doSomethingWith(foo));
       * }</pre>
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/GcFinalization.java

     * final WeakHashMap<Object, Object> map = new WeakHashMap<>();
     * map.put(new Object(), Boolean.TRUE);
     * GcFinalization.awaitDone(new FinalizationPredicate() {
     *   public boolean isDone() {
     *     return map.isEmpty();
     *   }
     * });
     * }</pre>
     *
     * <p>Even if your non-test code does not use finalization, you can use this class to test for
     * leaks, by ensuring that objects are no longer strongly referenced:
     *
     * <pre>{@code
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  9. src/archive/tar/common.go

    	dst := src[:0]
    	var pre sparseEntry
    	for _, cur := range src {
    		if cur.Length == 0 {
    			continue // Skip empty fragments
    		}
    		pre.Length = cur.Offset - pre.Offset
    		if pre.Length > 0 {
    			dst = append(dst, pre) // Only add non-empty fragments
    		}
    		pre.Offset = cur.endOffset()
    	}
    	pre.Length = size - pre.Offset // Possibly the only empty fragment
    	return append(dst, pre)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  10. maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LifecycleExecutionPlanCalculatorStub.java

    /**
     */
    public class LifecycleExecutionPlanCalculatorStub implements LifecycleExecutionPlanCalculator {
        // clean
    
        public static final MojoDescriptor PRE_CLEAN = createMojoDescriptor("pre-clean");
    
        public static final MojoDescriptor CLEAN = createMojoDescriptor("clean");
    
        public static final MojoDescriptor POST_CLEAN = createMojoDescriptor("post-clean");
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Jan 09 20:57:17 GMT 2024
    - 12.4K bytes
    - Viewed (0)
Back to top