Back to project page LibGeppa.
The source code is released under:
Apache License
If you think the Android project LibGeppa listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.cattaka.libgeppa.data; /* ww w. ja v a 2s. c o m*/ import android.os.Parcel; import android.os.Parcelable; public enum ConnectionState implements Parcelable { UNKNOWN, INITIAL, CONNECTING, CONNECTED, CLOSED; @Override public int describeContents() { return 0; } @Override public void writeToParcel(Parcel dest, int flags) { // String???Parcel??????????? dest.writeString(this.name()); } public static final Parcelable.Creator<ConnectionState> CREATOR = new Parcelable.Creator<ConnectionState>() { @Override public ConnectionState[] newArray(int size) { return new ConnectionState[size]; } @Override public ConnectionState createFromParcel(Parcel source) { return ConnectionState.valueOf(source.readString()); } }; }