Package elki.parallel.variables
Class SharedObject<T>
- java.lang.Object
-
- elki.parallel.variables.SharedObject<T>
-
- Type Parameters:
T
- Data type
- All Implemented Interfaces:
SharedVariable<SharedObject.Instance<T>>
public class SharedObject<T> extends java.lang.Object implements SharedVariable<SharedObject.Instance<T>>
Variable to share between different processors (within one thread only!)- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SharedObject.Instance<T>
Instance for a particular thread.
-
Constructor Summary
Constructors Constructor Description SharedObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SharedObject.Instance<T>
instantiate()
Instantiate for an execution thread.
-
-
-
Method Detail
-
instantiate
public SharedObject.Instance<T> instantiate()
Description copied from interface:SharedVariable
Instantiate for an execution thread.- Specified by:
instantiate
in interfaceSharedVariable<T>
- Returns:
- new Instance
-
-