< prev index next >

src/java.base/share/classes/sun/text/resources/FormatData.java

Print this page




  62  * File(s) or Software that the data or software has been modified.
  63  *
  64  * THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
  65  * KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  66  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
  67  * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
  68  * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR
  69  * CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  70  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  71  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
  72  * OF THE DATA FILES OR SOFTWARE.
  73  *
  74  * Except as contained in this notice, the name of a copyright holder shall not
  75  * be used in advertising or otherwise to promote the sale, use or other
  76  * dealings in these Data Files or Software without prior written authorization
  77  * of the copyright holder.
  78  */
  79 
  80 package sun.text.resources;
  81 

  82 import sun.util.resources.ParallelListResourceBundle;
  83 
  84 public class FormatData extends ParallelListResourceBundle {
  85     /**
  86      * Overrides ListResourceBundle
  87      */
  88     @Override
  89     protected final Object[][] getContents() {
  90         // Julian calendar era strings
  91         final String[] julianEras = {
  92             "BC",
  93             "AD"
  94         };
  95 
  96         // Thai Buddhist calendar era strings
  97         final String[] buddhistEras = {
  98             "BC",     // BC
  99             "B.E."    // Buddhist Era
 100         };
 101 


 778                     "E",
 779                     "\u2030",
 780                     "\u221e",
 781                     "NaN",
 782                 }
 783             },
 784             { "vaii.NumberElements",
 785                 new String[] {
 786                     ".",
 787                     ",",
 788                     ";",
 789                     "%",
 790                     "\ua620",
 791                     "#",
 792                     "-",
 793                     "E",
 794                     "\u2030",
 795                     "\u221e",
 796                     "NaN",
 797                 }






































 798             },
 799             { "TimePatterns",
 800                 new String[] {
 801                     "h:mm:ss a z",        // full time pattern
 802                     "h:mm:ss a z",        // long time pattern
 803                     "h:mm:ss a",          // medium time pattern
 804                     "h:mm a",             // short time pattern
 805                 }
 806             },
 807             { "DatePatterns",
 808                 new String[] {
 809                     "EEEE, MMMM d, yyyy", // full date pattern
 810                     "MMMM d, yyyy",       // long date pattern
 811                     "MMM d, yyyy",        // medium date pattern
 812                     "M/d/yy",             // short date pattern
 813                 }
 814             },
 815             { "DateTimePatterns",
 816                 new String[] {
 817                     "{1} {0}"             // date-time pattern




  62  * File(s) or Software that the data or software has been modified.
  63  *
  64  * THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
  65  * KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  66  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
  67  * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
  68  * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR
  69  * CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  70  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  71  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
  72  * OF THE DATA FILES OR SOFTWARE.
  73  *
  74  * Except as contained in this notice, the name of a copyright holder shall not
  75  * be used in advertising or otherwise to promote the sale, use or other
  76  * dealings in these Data Files or Software without prior written authorization
  77  * of the copyright holder.
  78  */
  79 
  80 package sun.text.resources;
  81 
  82 import java.util.List;
  83 import sun.util.resources.ParallelListResourceBundle;
  84 
  85 public class FormatData extends ParallelListResourceBundle {
  86     /**
  87      * Overrides ListResourceBundle
  88      */
  89     @Override
  90     protected final Object[][] getContents() {
  91         // Julian calendar era strings
  92         final String[] julianEras = {
  93             "BC",
  94             "AD"
  95         };
  96 
  97         // Thai Buddhist calendar era strings
  98         final String[] buddhistEras = {
  99             "BC",     // BC
 100             "B.E."    // Buddhist Era
 101         };
 102 


 779                     "E",
 780                     "\u2030",
 781                     "\u221e",
 782                     "NaN",
 783                 }
 784             },
 785             { "vaii.NumberElements",
 786                 new String[] {
 787                     ".",
 788                     ",",
 789                     ";",
 790                     "%",
 791                     "\ua620",
 792                     "#",
 793                     "-",
 794                     "E",
 795                     "\u2030",
 796                     "\u221e",
 797                     "NaN",
 798                 }
 799             },
 800             { "short.CompactNumberPatterns",
 801                 List.of(
 802                     "",
 803                     "",
 804                     "",
 805                     "0K",
 806                     "00K",
 807                     "000K",
 808                     "0M",
 809                     "00M",
 810                     "000M",
 811                     "0B",
 812                     "00B",
 813                     "000B",
 814                     "0T",
 815                     "00T",
 816                     "000T"
 817                 )
 818             },
 819             { "long.CompactNumberPatterns",
 820                 List.of (
 821                     "",
 822                     "",
 823                     "",
 824                     "0 thousand",
 825                     "00 thousand",
 826                     "000 thousand",
 827                     "0 million",
 828                     "00 million",
 829                     "000 million",
 830                     "0 billion",
 831                     "00 billion",
 832                     "000 billion",
 833                     "0 trillion",
 834                     "00 trillion",
 835                     "000 trillion"
 836                 )
 837             },
 838             { "TimePatterns",
 839                 new String[] {
 840                     "h:mm:ss a z",        // full time pattern
 841                     "h:mm:ss a z",        // long time pattern
 842                     "h:mm:ss a",          // medium time pattern
 843                     "h:mm a",             // short time pattern
 844                 }
 845             },
 846             { "DatePatterns",
 847                 new String[] {
 848                     "EEEE, MMMM d, yyyy", // full date pattern
 849                     "MMMM d, yyyy",       // long date pattern
 850                     "MMM d, yyyy",        // medium date pattern
 851                     "M/d/yy",             // short date pattern
 852                 }
 853             },
 854             { "DateTimePatterns",
 855                 new String[] {
 856                     "{1} {0}"             // date-time pattern


< prev index next >