![JAR search and dependency download from the Maven repository](/logo.png)
uk.co.mruoc.nac.client.GameEventSubscriber Maven / Gradle / Ivy
package uk.co.mruoc.nac.client;
import java.util.Optional;
import java.util.stream.Stream;
public interface GameEventSubscriber {
String getDestination();
default T forceGetMostRecent() {
return getMostRecent().orElseThrow();
}
default Optional getMostRecent() {
return getAll().reduce((first, second) -> second);
}
Stream getAll();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy