最終更新:2016-01-21 (木) 19:19:35 (2989d)
java.io.Serializable
Top / java.io.Serializable
public interface Serializable
メモ
- Serializableインタフェースはメソッド、フィールドがなく、シリアライズが可能であるという意味を識別する機能だけを備えています。
- implements Serializable とだけ記述すれば、他にメソッドを実装するなどの手間は必要ありません。
- Serializable is a standard Java interface. You simply mark a class Serializable by implementing the interface, and Java will automatically serialize it in certain situations.
注意事項
- クラス内のフィールドはプリミティブ型(intやboolean)か、もしくはシリアライズ可能なクラスでなければならない
メモ
- The problem with this approach is that reflection is used and it is a slow process.
バージョンID
- private static final long serialVersionUID?
android.os.Parcelable
- is an Android specific interface where you implement the serialization yourself. It was created to be far more efficient that Serializable, and to get around some problems with the default Java serialization scheme.