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

com.testdroid.api.model.capabilities.APIDesktopBrowserCapabilities Maven / Gradle / Ivy

There is a newer version: 3.34.0
Show newest version
package com.testdroid.api.model.capabilities;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.testdroid.api.APIEntity;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * @author Michał Szpruta 
 */
public class APIDesktopBrowserCapabilities extends APIEntity {

    private List platforms = new ArrayList<>();

    public APIDesktopBrowserCapabilities() {
        // need for serialization/deserialization
    }

    public List getPlatforms() {
        return platforms;
    }

    public APIDesktopBrowserCapabilities setPlatforms(List platforms) {
        this.platforms = platforms;
        return this;
    }

    @Override
    @JsonIgnore
    protected  void clone(T from) {
        APIDesktopBrowserCapabilities original = (APIDesktopBrowserCapabilities) from;
        this.platforms = original.platforms;
    }

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

    @Override
    public int hashCode() {
        return Objects.hash(platforms);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy