sk.baka.ambient
Class I18n

java.lang.Object
  extended by sk.baka.ambient.I18n

public final class I18n
extends java.lang.Object

I18n support.

Author:
Martin Vysny

Method Summary
static java.lang.String format(java.util.Formattable f)
          Formats given formattable and returns the result.
static java.util.Formattable newAlbums(int count)
          Returns new "albums" formatter.
static java.util.Formattable newArtists(int count)
          Returns new "artists" formatter.
static java.util.Formattable newDir(int count)
          Returns new "directories" formatter.
static java.util.Formattable newFiles(int filecount)
          Returns new "files" formatter.
static java.util.Formattable newGenres(int count)
          Returns new "genres" formatter.
static java.util.Formattable newTracks(int count)
          Returns new "tracks" formatter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newFiles

public static java.util.Formattable newFiles(int filecount)
Returns new "files" formatter. Output: "5 files"

Parameters:
filecount - count of files.
Returns:
the formatter, never null

newDir

public static java.util.Formattable newDir(int count)
Returns new "directories" formatter. Output: "5 directories"

Parameters:
count - count of directories.
Returns:
the formatter, never null

newTracks

public static java.util.Formattable newTracks(int count)
Returns new "tracks" formatter. Output: "5 tracks"

Parameters:
count - count of tracks.
Returns:
the formatter, never null

format

public static java.lang.String format(java.util.Formattable f)
Formats given formattable and returns the result.

Parameters:
f - the formattable to format. Must not be null.
Returns:
the string.

newAlbums

public static java.util.Formattable newAlbums(int count)
Returns new "albums" formatter. Output: "5 albums"

Parameters:
count - count of albums.
Returns:
the formatter, never null

newArtists

public static java.util.Formattable newArtists(int count)
Returns new "artists" formatter. Output: "5 artists"

Parameters:
count - count of artists.
Returns:
the formatter, never null

newGenres

public static java.util.Formattable newGenres(int count)
Returns new "genres" formatter. Output: "5 genres"

Parameters:
count - count of genres.
Returns:
the formatter, never null


Copyright © 2007-2009. All Rights Reserved.