org.codehaus.httpcache4j.preference.Charset Maven / Gradle / Ivy
The newest version!
package org.codehaus.httpcache4j.preference;
/**
* @author Erlend Hamnaberg
*/
public class Charset {
private final String name;
public Charset(String name) {
this.name = name;
}
public String getName() {
return name;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Charset charset = (Charset) o;
if (name != null ? !name.equals(charset.name) : charset.name != null) return false;
return true;
}
@Override
public int hashCode() {
return name != null ? name.hashCode() : 0;
}
@Override
public String toString() {
return name;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy