All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.api.mapping.I18NStringMapper Maven / Gradle / Ivy

There is a newer version: 2.6.0
Show newest version
package org.opentripplanner.api.mapping;

import java.util.Locale;
import org.opentripplanner.transit.model.basic.I18NString;

public class I18NStringMapper {

  private Locale locale;

  I18NStringMapper(Locale locale) {
    this.locale = locale;
  }

  public String mapToApi(I18NString string) {
    return string == null ? null : string.toString(locale);
  }

  static String mapToApi(I18NString string, Locale locale) {
    return string == null ? null : string.toString(locale);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy