de.malkusch.whoisServerList.api.v1.model.ListObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of whois-server-list-api Show documentation
Show all versions of whois-server-list-api Show documentation
XML mapping for the Whois Server List.
The newest version!
package de.malkusch.whoisServerList.api.v1.model;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.PatternAwareEqualsBuilder;
/**
* An object of the list.
*
* @author [email protected]
* @param the implementing ListObject type
* @see Donations
*/
public abstract class ListObject> implements Cloneable {
/**
* The source of this object.
*/
private Source source;
/**
* Returns the source of this object.
*
* @return the source
*/
public final Source getSource() {
return source;
}
/**
* Sets the source of this object.
*
* @param source the source
*/
public final void setSource(final Source source) {
this.source = source;
}
@Override
public final boolean equals(final Object obj) {
return PatternAwareEqualsBuilder.reflectionEquals(this, obj);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
@SuppressWarnings("unchecked")
@Override
public final T clone() {
try {
return (T) super.clone();
} catch (CloneNotSupportedException e) {
throw new RuntimeException(e);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy