1 package com.github.mygreen.cellformatter;
2
3 import java.util.Locale;
4
5
6
7
8
9
10
11
12
13 public abstract class CellFormatter {
14
15
16
17
18
19
20
21 public CellFormatResult format(final CommonCell cell) {
22 return format(cell, Locale.getDefault());
23 }
24
25
26
27
28
29
30
31
32 public abstract CellFormatResult format(final CommonCell cell, final Locale locale);
33
34
35
36
37
38
39 public String getPattern() {
40 return getPattern(Locale.getDefault());
41 }
42
43
44
45
46
47
48
49 public abstract String getPattern(final Locale locale);
50
51
52 }