Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 094af49fba9ad1376137d2959eaed6f4e3775440 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                                                
                                                          







                                                                                 
                                  
















                                                                     
/*******************************************************************************
 * Copyright (c) 2006, 2009 Wind River Systems and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     Wind River Systems - initial API and implementation
 *******************************************************************************/
package org.eclipse.cdt.tests.dsf;

/**
 * Utility class to hold a value retrieved in a runnable.
 * Usage in a test is as follows:
 * <pre>
 *     final ValueHolder<Integer> value = new ValueHolder<Integer>();
 *     fExecutor.execute(new Runnable() {
 *         public void run() {
 *             value.fValue = 1;
 *         }
 *     }); 
 *     Assert.assertTrue(value.fValue == 1);
 * </pre> 
 */
public class ValueHolder<V> {
    public V fValue;
}

Back to the top