com.jgoodies.jdiskreport.model.util
Class Formats

java.lang.Object
  extended by com.jgoodies.jdiskreport.model.util.Formats

public final class Formats
extends Object

Consists only of static methods that format model values.

Version:
$Revision: 1.9 $
Author:
Karsten Lentzsch
See Also:
Format

Field Summary
static Format COUNT_FORMAT_LONG
           
static Format FILE_COUNT_FORMAT
           
static Format KILOBYTE_FORMAT
           
 
Method Summary
static String formatCount(long count)
           
static String formatCountForCell(Long count)
           
static String formatDate(long modified)
           
static String formatDateAndTime(Long modified)
           
static String formatPercent(float value)
           
static String formatSize(long size)
           
static String formatSizeForCell(Long size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KILOBYTE_FORMAT

public static final Format KILOBYTE_FORMAT

FILE_COUNT_FORMAT

public static final Format FILE_COUNT_FORMAT

COUNT_FORMAT_LONG

public static final Format COUNT_FORMAT_LONG
Method Detail

formatDate

public static String formatDate(long modified)

formatDateAndTime

public static String formatDateAndTime(Long modified)

formatPercent

public static String formatPercent(float value)

formatSize

public static String formatSize(long size)

formatSizeForCell

public static String formatSizeForCell(Long size)

formatCount

public static String formatCount(long count)

formatCountForCell

public static String formatCountForCell(Long count)


Copyright © 2000-2008 JGoodies Karsten Lentzsch. All Rights Reserved.