Package elki.parallel.variables
Class SharedInteger.Instance
- java.lang.Object
-
- elki.parallel.variables.SharedInteger.Instance
-
- All Implemented Interfaces:
SharedVariable.Instance<java.lang.Integer>
- Enclosing class:
- SharedInteger
public static class SharedInteger.Instance extends java.lang.Object implements SharedVariable.Instance<java.lang.Integer>
Instance for a sub-channel.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private int
data
Cache for last data consumed/produced
-
Constructor Summary
Constructors Constructor Description Instance()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Integer
get()
Deprecated.useintValue()
!int
intValue()
Get the variables value.void
set(int data)
Set the variables value.void
set(java.lang.Integer data)
Deprecated.useset(int)
!
-
-
-
Method Detail
-
get
@Deprecated public java.lang.Integer get()
Deprecated.useintValue()
!Description copied from interface:SharedVariable.Instance
Get the current value- Specified by:
get
in interfaceSharedVariable.Instance<java.lang.Integer>
- Returns:
- Value
-
set
@Deprecated public void set(java.lang.Integer data)
Deprecated.useset(int)
!Description copied from interface:SharedVariable.Instance
Set a new value- Specified by:
set
in interfaceSharedVariable.Instance<java.lang.Integer>
- Parameters:
data
- Setter
-
intValue
public int intValue()
Get the variables value.- Returns:
- Integer value
-
set
public void set(int data)
Set the variables value.- Parameters:
data
- New value
-
-