Skip to content

Instantly share code, notes, and snippets.

@Maxopoly
Maxopoly / CachedObject.java
Last active June 3, 2018 21:40 — forked from Cryptite/CachedObject.java
Cached Object
import java.util.function.Supplier;
public class CachedObject<T> {
private final Supplier<T> updateFunction;
private T cachedValue;
private boolean dirty = true;
public CachedObject(Supplier<T> updateFunction) {
this.updateFunction = updateFunction;
}
@Maxopoly
Maxopoly / Setup GitHub issue labels script
Last active April 28, 2016 12:40 — forked from adamreisnz/Setup GitHub issue labels script
A terminal script to setup GitHub issue labels for a project.
Setup GitHub issue labels script