gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.lib / src / main / java / org / gvsig / tools / dataTypes / CoercionContextLocaleImpl.java @ 2080
History | View | Annotate | Download (440 Bytes)
1 |
package org.gvsig.tools.dataTypes; |
---|---|
2 |
|
3 |
import java.util.Locale; |
4 |
|
5 |
/**
|
6 |
*
|
7 |
* @author jjdelcerro
|
8 |
*/
|
9 |
public class CoercionContextLocaleImpl implements CoercionContextLocale { |
10 |
|
11 |
final Locale locale; |
12 |
|
13 |
public CoercionContextLocaleImpl(Locale locale) { |
14 |
if( locale == null ) { |
15 |
this.locale = Locale.getDefault(); |
16 |
} else {
|
17 |
this.locale = locale;
|
18 |
} |
19 |
} |
20 |
|
21 |
@Override
|
22 |
public Locale locale() { |
23 |
return this.locale; |
24 |
} |
25 |
|
26 |
} |