Back to project page BTSerialConsole.
The source code is released under:
MIT License
If you think the Android project BTSerialConsole 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 com.neykov.bluetoothserialconsole.connection.enums; /*from ww w . j av a 2 s.c o m*/ import android.os.Parcel; import android.os.Parcelable; //Enumerate Parity constant public enum EParity implements Parcelable { NONE, ODD, EVEN; @Override public int describeContents() { return 0; } @Override public void writeToParcel(final Parcel dest, final int flags) { dest.writeInt(ordinal()); } public static final Creator<EParity> CREATOR = new Creator<EParity>() { @Override public EParity createFromParcel(final Parcel source) { return EParity.values()[source.readInt()]; } @Override public EParity[] newArray(final int size) { return new EParity[size]; } }; }