package router.client;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

/**
 * Interface via which different backends can be implemented.
 */
public interface RoutingBackend
{
  @FunctionalInterface
  interface HashChangeListener
  {
    boolean onHashChange( @Nonnull String hash );
  }
  /**
   * Return the hash indicating the
   */
  @Nullable
  String getHash();

  void setHash( @Nullable String hash );

  Object addListener( HashChangeListener handler );

  void removeListener( Object handle );
}

@@ -21,41 +21,8 @@
 t;%0A%0A
-import javax.annotation.Nonnull;%0A
 impo
@@ -246,14 +246,15 @@
 ( @N
-onn
 ull
+able
  Str

Hash can be null