hydra.langs.rdf.syntax.LangStrings Maven / Gradle / Ivy
package hydra.langs.rdf.syntax;
import java.io.Serializable;
/**
* A convenience type which provides at most one string value per language, and optionally a value without a language
*/
public class LangStrings implements Serializable {
public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/rdf/syntax.LangStrings");
/**
* A convenience type which provides at most one string value per language, and optionally a value without a language
*/
public final java.util.Map, String> value;
public LangStrings (java.util.Map, String> value) {
this.value = value;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof LangStrings)) {
return false;
}
LangStrings o = (LangStrings) (other);
return value.equals(o.value);
}
@Override
public int hashCode() {
return 2 * value.hashCode();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy