script-astra/Android/Sdk/sources/android-35/android/icu/impl/number/Properties.java

41 lines
1.3 KiB
Java
Raw Normal View History

2025-01-20 15:15:20 +00:00
/* GENERATED SOURCE. DO NOT MODIFY. */
// © 2017 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
package android.icu.impl.number;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
/**
* ICU 59 called the class DecimalFormatProperties as just Properties. We need to keep a thin
* implementation for the purposes of serialization.
* @hide Only a subset of ICU is exposed in Android
*/
public class Properties implements Serializable {
/** Same as DecimalFormatProperties. */
private static final long serialVersionUID = 4095518955889349243L;
private transient DecimalFormatProperties instance;
public DecimalFormatProperties getInstance() {
return instance;
}
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
if (instance == null) {
instance = new DecimalFormatProperties();
}
instance.readObjectImpl(ois);
}
private void writeObject(ObjectOutputStream oos) throws IOException {
if (instance == null) {
instance = new DecimalFormatProperties();
}
instance.writeObjectImpl(oos);
}
}