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

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

Go to download

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

There is a newer version: 2.7.2
Show newest version
package com.flextrade.jfixture.requests;

import java.util.Collections;
import java.util.List;

public class ElementFromListRequest {

    private final List list;

    public ElementFromListRequest(List list) {
        this.list = Collections.unmodifiableList(list);
    }

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

        ElementFromListRequest that = (ElementFromListRequest) o;

        return list.equals(that.list);
    }

    @Override
    public int hashCode() {
        return list.hashCode();
    }

    public List getList() {
        return this.list;
    }

    @Override
    public String toString() {
        return "ElementFromListRequest{" +
                "list=" + list +
                '}';
    }
}