cn.nukkit.utils.ThreadStore Java Examples

The following examples show how to use cn.nukkit.utils.ThreadStore. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AsyncTask.java    From Jupiter with GNU General Public License v3.0 5 votes vote down vote up
public void saveToThreadStore(String identifier, Object value) {
    if (!this.isFinished()) {
        if (value == null) {
            ThreadStore.store.remove(identifier);
        } else {
            ThreadStore.store.put(identifier, value);
        }
    }
}
 
Example #2
Source File: AsyncTask.java    From Nukkit with GNU General Public License v3.0 5 votes vote down vote up
public void saveToThreadStore(String identifier, Object value) {
    if (!this.isFinished()) {
        if (value == null) {
            ThreadStore.store.remove(identifier);
        } else {
            ThreadStore.store.put(identifier, value);
        }
    }
}
 
Example #3
Source File: AsyncTask.java    From Nukkit with GNU General Public License v3.0 5 votes vote down vote up
public void saveToThreadStore(String identifier, Object value) {
    if (!this.isFinished()) {
        if (value == null) {
            ThreadStore.store.remove(identifier);
        } else {
            ThreadStore.store.put(identifier, value);
        }
    }
}
 
Example #4
Source File: AsyncTask.java    From Jupiter with GNU General Public License v3.0 4 votes vote down vote up
public Object getFromThreadStore(String identifier) {
    return this.isFinished() ? null : ThreadStore.store.get(identifier);
}
 
Example #5
Source File: AsyncTask.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public Object getFromThreadStore(String identifier) {
    return this.isFinished() ? null : ThreadStore.store.get(identifier);
}
 
Example #6
Source File: AsyncTask.java    From Nukkit with GNU General Public License v3.0 4 votes vote down vote up
public Object getFromThreadStore(String identifier) {
    return this.isFinished() ? null : ThreadStore.store.get(identifier);
}