org.knime.core.util
Class Pointer<T>
java.lang.Object
org.knime.core.util.Pointer<T>
- Type Parameters:
T
- any type
public class Pointer<T>
- extends Object
This class is a little helper that just adds another indirection to and
object. This can be useful if you want to pass a value from an anonymous
inner class method to the enclosing outer method.
- Author:
- Thorsten Meinl, University of Konstanz
Method Summary |
T |
get()
Returns the value of the pointer. |
void |
set(T v)
Sets the pointer's value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Pointer
public Pointer()
get
public T get()
- Returns the value of the pointer.
- Returns:
- the pointer's value
set
public void set(T v)
- Sets the pointer's value.
- Parameters:
v
- the new value
Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display,
or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the
copyright owner or as specified in the license file distributed with this product.