• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GENERATED SOURCE. DO NOT MODIFY. */
2 // © 2017 and later: Unicode, Inc. and others.
3 // License & terms of use: http://www.unicode.org/copyright.html#License
4 package ohos.global.icu.impl.number;
5 
6 import java.io.IOException;
7 import java.io.ObjectInputStream;
8 import java.io.ObjectOutputStream;
9 import java.io.Serializable;
10 
11 /**
12  * ICU 59 called the class DecimalFormatProperties as just Properties. We need to keep a thin
13  * implementation for the purposes of serialization.
14  * @hide exposed on OHOS
15  */
16 public class Properties implements Serializable {
17 
18     /** Same as DecimalFormatProperties. */
19     private static final long serialVersionUID = 4095518955889349243L;
20 
21     private transient DecimalFormatProperties instance;
22 
getInstance()23     public DecimalFormatProperties getInstance() {
24         return instance;
25     }
26 
readObject(ObjectInputStream ois)27     private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
28         if (instance == null) {
29             instance = new DecimalFormatProperties();
30         }
31         instance.readObjectImpl(ois);
32     }
33 
writeObject(ObjectOutputStream oos)34     private void writeObject(ObjectOutputStream oos) throws IOException {
35         if (instance == null) {
36             instance = new DecimalFormatProperties();
37         }
38         instance.writeObjectImpl(oos);
39     }
40 }
41