org.opentripplanner.util.TranslatedString Maven / Gradle / Ivy
package org.opentripplanner.util;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Map.Entry;
/**
* This is for translated strings for which translations are read from OSM or GTFS alerts.
*
* This can be translated street names, GTFS alerts and notes.
* @author Hannes Junnila
*/
public class TranslatedString implements I18NString, Serializable {
/**
* Store all translations, so we don't get memory overhead for identical strings
* As this is static, it isn't serialized when saving the graph.
*/
private static HashMap