All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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