Back to project page utexas-utilities.
The source code is released under:
Apache License
If you think the Android project utexas-utilities 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.nasageek.utexasutilities.model; /* ww w. ja v a 2s .c om*/ import android.os.Parcel; import android.os.Parcelable; import java.io.Serializable; public class Building implements Parcelable, Serializable { private static final long serialVersionUID = 1L; String id; String room; public static Parcelable.Creator<Building> CREATOR = new Parcelable.Creator<Building>() { @Override public Building createFromParcel(Parcel source) { return new Building(source); } @Override public Building[] newArray(int size) { return new Building[size]; } }; private Building(Parcel in) { id = in.readString(); room = in.readString(); } public Building(String i, String r) { id = i; room = r; } public Building(Building building) { this(building.getId(), building.getRoom()); } public String getRoom() { return room; } public String getId() { return id; } @Override public int describeContents() { return 0; } @Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(id); dest.writeString(room); } }