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

com.flextrade.jfixture.requests.SeededRequest Maven / Gradle / Ivy

Go to download

JFixture is an open source library based on the popular .NET library, AutoFixture

The newest version!
package com.flextrade.jfixture.requests;

public class SeededRequest {
    private final Object seed;
    private final Object request;

    public SeededRequest(Object seed, Object request) {
        this.seed = seed;
        this.request = request;
    }

    public Object getSeed() {
        return this.seed;
    }

    public Object getRequest() {
        return this.request;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SeededRequest that = (SeededRequest) o;

        return request.equals(that.request) && seed.equals(that.seed);
    }

    @Override
    public int hashCode() {
        int result = seed.hashCode();
        result = 31 * result + request.hashCode();
        return result;
    }

    @Override
    public String toString() {
        return "SeededRequest{" +
                "seed=" + seed +
                ", request=" + request +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy