com.testdroid.api.model.APIUserPreference 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
The newest version!
package com.testdroid.api.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.testdroid.api.APIEntity;
import java.io.Serial;
import java.io.Serializable;
import java.util.Objects;
/**
* @author Damian Sniezek
*/
@JsonIgnoreProperties(value = {"id"})
public class APIUserPreference extends APIEntity implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
private Long httpSessionMaxInactiveInterval;
private Long defaultHttpSessionMaxInactiveInterval;
public void setHttpSessionMaxInactiveInterval(Long httpSessionMaxInactiveInterval) {
this.httpSessionMaxInactiveInterval = httpSessionMaxInactiveInterval;
}
public Long getHttpSessionMaxInactiveInterval() {
return httpSessionMaxInactiveInterval;
}
public void setDefaultHttpSessionMaxInactiveInterval(Long defaultHttpSessionMaxInactiveInterval) {
this.defaultHttpSessionMaxInactiveInterval = defaultHttpSessionMaxInactiveInterval;
}
public Long getDefaultHttpSessionMaxInactiveInterval() {
return defaultHttpSessionMaxInactiveInterval;
}
@Override
@JsonIgnore
protected void clone(T from) {
APIUserPreference prototype = (APIUserPreference) from;
cloneBase(from);
this.httpSessionMaxInactiveInterval = prototype.httpSessionMaxInactiveInterval;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
APIUserPreference that = (APIUserPreference) o;
return Objects.equals(httpSessionMaxInactiveInterval, that.httpSessionMaxInactiveInterval);
}
@Override
public int hashCode() {
return Objects.hash(httpSessionMaxInactiveInterval);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy