public <T extends RequestContext> T append(T other) { AbstractRequestContext child = (AbstractRequestContext) other; if (!state.isCompatible(child.state)) { throw new IllegalStateException(getClass().getName() + " and " + child.getClass().getName() + " are not compatible"); } if (!child.state.isClean()) { throw new IllegalStateException("The provided RequestContext has been changed"); } child.setState(state); return other; }
public <T extends RequestContext> T append(T other) { AbstractRequestContext child = (AbstractRequestContext) other; if (!state.isCompatible(child.state)) { throw new IllegalStateException(getClass().getName() + " and " + child.getClass().getName() + " are not compatible"); } if (!child.state.isClean()) { throw new IllegalStateException("The provided RequestContext has been changed"); } child.setState(state); return other; }
public <T extends RequestContext> T append(T other) { AbstractRequestContext child = (AbstractRequestContext) other; if (!state.isCompatible(child.state)) { throw new IllegalStateException(getClass().getName() + " and " + child.getClass().getName() + " are not compatible"); } if (!child.state.isClean()) { throw new IllegalStateException("The provided RequestContext has been changed"); } child.setState(state); return other; }
public <T extends RequestContext> T append(T other) { AbstractRequestContext child = (AbstractRequestContext) other; if (!state.isCompatible(child.state)) { throw new IllegalStateException(getClass().getName() + " and " + child.getClass().getName() + " are not compatible"); } if (!child.state.isClean()) { throw new IllegalStateException("The provided RequestContext has been changed"); } child.setState(state); return other; }