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

org.pitest.sequence.StateContext Maven / Gradle / Ivy

There is a newer version: 1.17.1
Show newest version
package org.pitest.sequence;

import java.util.Objects;

/**
 * Pair class to hold state and context.
 */
final class StateContext {

    StateContext(State state, Context context) {
        this.state = state;
        this.context = context;
    }
    final State state;
    final Context context;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof StateContext)) {
            return false;
        }
        StateContext that = (StateContext) o;
        return state.equals(that.state) && context.equals(that.context);
    }

    @Override
    public int hashCode() {
        return Objects.hash(state, context);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy