@Override
    public int hashCode() {

        int result = stateElement != null ? stateElement.hashCode() : 0;
        result = 31 * result + (nextStateElement != null ? nextStateElement.hashCode() : 0);
        return result;
    }
Next state element used in patterns to link states
modules/siddhi-query-api/src/main/java/io/siddhi/query/api/execution/query/input/state/NextStateElement.java