1 package org.simantics.document.server.handler;
3 import org.simantics.document.server.io.CommandContext;
4 import org.simantics.document.server.io.CommandResult;
5 import org.simantics.scl.runtime.function.Function1;
7 public abstract class AbstractResponseHandler extends AbstractEventHandler {
9 private Function1<CommandContext, CommandResult> fn;
11 public AbstractResponseHandler(Function1<CommandContext, CommandResult> fn) {
16 public int hashCode() {
19 result = prime * result + ((fn == null) ? 0 : fn.hashCode());
24 public boolean equals(Object obj) {
29 if (getClass() != obj.getClass())
31 AbstractResponseHandler other = (AbstractResponseHandler) obj;
35 } else if (!fn.equals(other.fn))