BrightSide Workbench Full Report + Source Code
org.turro.wd.common.entities.WdFormats Class Reference
Collaboration diagram for org.turro.wd.common.entities.WdFormats:

Static Public Member Functions

static Date parse (String date) throws ParseException
 
static String format (Date date)
 
static String format (long time)
 
static boolean before (Date date, long time) throws ParseException
 
static boolean after (Date date, long time) throws ParseException
 
static String getContentType (File file)
 
static String getContentType (String file)
 

Static Public Attributes

static final MimetypesFileTypeMap MIME_TYPES_FILE_MAP = new MimetypesFileTypeMap()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 30 of file WdFormats.java.

Member Function Documentation

◆ after()

static boolean org.turro.wd.common.entities.WdFormats.after ( Date  date,
long  time 
) throws ParseException
static

Definition at line 52 of file WdFormats.java.

52  {
53  return format(date).compareTo(format(time)) < 0;
54  }
static String format(Date date)
Definition: WdFormats.java:40
Here is the call graph for this function:
Here is the caller graph for this function:

◆ before()

static boolean org.turro.wd.common.entities.WdFormats.before ( Date  date,
long  time 
) throws ParseException
static

Definition at line 48 of file WdFormats.java.

48  {
49  return format(date).compareTo(format(time)) > 0;
50  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ format() [1/2]

static String org.turro.wd.common.entities.WdFormats.format ( Date  date)
static

Definition at line 40 of file WdFormats.java.

40  {
41  return dateFormat.format(date);
42  }
Here is the caller graph for this function:

◆ format() [2/2]

static String org.turro.wd.common.entities.WdFormats.format ( long  time)
static

Definition at line 44 of file WdFormats.java.

44  {
45  return dateFormat.format(new Date(time));
46  }

◆ getContentType() [1/2]

static String org.turro.wd.common.entities.WdFormats.getContentType ( File  file)
static

Definition at line 56 of file WdFormats.java.

56  {
57  return MIME_TYPES_FILE_MAP.getContentType(file);
58  }
static final MimetypesFileTypeMap MIME_TYPES_FILE_MAP
Definition: WdFormats.java:34
Here is the caller graph for this function:

◆ getContentType() [2/2]

static String org.turro.wd.common.entities.WdFormats.getContentType ( String  file)
static

Definition at line 60 of file WdFormats.java.

60  {
61  return MIME_TYPES_FILE_MAP.getContentType(file);
62  }

◆ parse()

static Date org.turro.wd.common.entities.WdFormats.parse ( String  date) throws ParseException
static

Definition at line 36 of file WdFormats.java.

36  {
37  return dateFormat.parse(date);
38  }
Here is the caller graph for this function:

Member Data Documentation

◆ MIME_TYPES_FILE_MAP

final MimetypesFileTypeMap org.turro.wd.common.entities.WdFormats.MIME_TYPES_FILE_MAP = new MimetypesFileTypeMap()
static

Definition at line 34 of file WdFormats.java.


The documentation for this class was generated from the following file: