io.contek.tinker.rearm.RearmSetStore Maven / Gradle / Ivy
The newest version!
package io.contek.tinker.rearm;
import com.google.common.collect.ImmutableSet;
import java.nio.file.Path;
import javax.annotation.concurrent.ThreadSafe;
@ThreadSafe
public abstract class RearmSetStore extends RearmStore> {
protected RearmSetStore(Path configPath, IParser parser) {
super(configPath, parser);
}
public final ImmutableSet getSet() {
ImmutableSet item = getParsedConfig();
return item == null ? ImmutableSet.of() : item;
}
/** Parser to read and parse {@link ImmutableSet} from a file. */
@ThreadSafe
public interface IParser extends RearmStore.IParser> {}
/** Listener which gets called when {@link RearmSetStore} has update. */
@ThreadSafe
public interface IListener extends RearmStore.IListener> {}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy