com.testdroid.api.model.capabilities.APIDesktopBrowserCapabilities Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testdroid-api Show documentation
Show all versions of testdroid-api Show documentation
The Testdroid API library for Java
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);
}
}