easy-18in/src/main/java/de/marhali/easyi18n/model/KeyedTranslation.java
2022-04-10 20:28:25 +02:00

44 lines
1.0 KiB
Java

package de.marhali.easyi18n.model;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* I18n translation with associated key path (full-key).
* @author marhali
*/
@Deprecated // Replaced by Translation
public class KeyedTranslation {
private @NotNull KeyPath key;
private @Nullable Translation translation;
public KeyedTranslation(@NotNull KeyPath key, @Nullable Translation translation) {
this.key = key;
this.translation = translation;
}
public KeyPath getKey() {
return key;
}
public void setKey(KeyPath key) {
this.key = key;
}
public @Nullable Translation getTranslation() {
return translation;
}
public void setTranslation(@NotNull Translation translation) {
this.translation = translation;
}
@Override
public String toString() {
return "KeyedTranslation{" +
"key='" + key + '\'' +
", translation=" + translation +
'}';
}
}