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

com.ibm.icu.impl.duration.PeriodFormatter Maven / Gradle / Ivy

Go to download

Vaadin is a web application framework for Rich Internet Applications (RIA). Vaadin enables easy development and maintenance of fast and secure rich web applications with a stunning look and feel and a wide browser support. It features a server-side architecture with the majority of the logic running on the server. Ajax technology is used at the browser-side to ensure a rich and interactive user experience.

There is a newer version: 1.2.0
Show newest version
/*
******************************************************************************
* Copyright (C) 2007, International Business Machines Corporation and   *
* others. All Rights Reserved.                                               *
******************************************************************************
*/

package com.ibm.icu.impl.duration;

/**
 * Formats a Period, such as '2 hours 23 minutes'.  
 * The Period defines the fields to format and their
 * values, and the formatter defines how to format them.
 * 

* PeriodFormatters are immutable. *

* PeriodFormatter can be instantiated using a PeriodFormatterFactory. * * @see Period * @see PeriodBuilder * @see PeriodFormatterFactory */ public interface PeriodFormatter { /** * Format a Period. * * @param ts the Period to format * @return the formatted time */ String format(Period period); /** * Return a new PeriodFormatter with the same customizations but * using data for a new locale. Some locales impose limits on the * fields that can be directly formatter. * * @param localeName the name of the new locale * @return a new formatter for the given locale */ PeriodFormatter withLocale(String localeName); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy