api: threads, files
This commit is contained in:
27
common/src/main/java/com/stardust/concurrent/Value.java
Normal file
27
common/src/main/java/com/stardust/concurrent/Value.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package com.stardust.concurrent;
|
||||
|
||||
/**
|
||||
* Created by Stardust on 2017/12/27.
|
||||
*/
|
||||
|
||||
public class Value<T> {
|
||||
|
||||
private T mValue;
|
||||
|
||||
public Value(T value) {
|
||||
mValue = value;
|
||||
}
|
||||
|
||||
public Value() {
|
||||
}
|
||||
|
||||
public T get() {
|
||||
return mValue;
|
||||
}
|
||||
|
||||
public void set(T value) {
|
||||
mValue = value;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user