// Path: chapter10/WoodworkingTools/app/src/main/java/com/iangclifton/woodworkingtools/Tool.java
// public class Tool implements Parcelable {
// 
//     private static final int DETAILS_COUNT = 3;
// 
//     private final String mName;
//     private final String mPrice;
//     private final String[] mDetails;
//     private final String mDescription;
//     private final int mImageResourceId;
//     private final int mThumbnailResourceId;
// 
//     public Tool(String name, String price, String[] details, String description, @DrawableRes int imageResourceId, @DrawableRes int thumbnailResourceId) {
//         mName = name;
//         mPrice = price;
//         mDetails = new String[DETAILS_COUNT];
//         if (details != null) {
//             System.arraycopy(details, 0, mDetails, 0, details.length);
//         }
//         mDescription = description;
//         mImageResourceId = imageResourceId;
//         mThumbnailResourceId = thumbnailResourceId;
//     }
// 
//     public String getDescription() {
//         return mDescription;
//     }
// 
//     public String[] getDetails() {
//         return mDetails;
//     }
// 
//     public String getName() {
//         return mName;
//     }
// 
//     public String getPrice() {
//         return mPrice;
//     }
// 
//     public int getImageResourceId() {
//         return mImageResourceId;
//     }
// 
//     public int getThumbnailResourceId() {
//         return mThumbnailResourceId;
//     }
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeString(mName);
//         dest.writeString(mPrice);
//         dest.writeStringArray(mDetails);
//         dest.writeString(mDescription);
//         dest.writeInt(mImageResourceId);
//         dest.writeInt(mThumbnailResourceId);
//     }
// 
//     private Tool(Parcel in) {
//         mName = in.readString();
//         mPrice = in.readString();
//         mDetails = in.createStringArray();
//         mDescription = in.readString();
//         mImageResourceId = in.readInt();
//         mThumbnailResourceId = in.readInt();
//     }
// 
//     public static final Parcelable.Creator<Tool> CREATOR = new Parcelable.Creator<Tool>() {
//         public Tool createFromParcel(Parcel source) {
//             return new Tool(source);
//         }
// 
//         public Tool[] newArray(int size) {
//             return new Tool[size];
//         }
//     };
// }


import android.support.annotation.DrawableRes;
import com.iangclifton.woodworkingtools.R;
import com.iangclifton.woodworkingtools.Tool;
import java.util.ArrayList;
import java.util.List;
                tools.add(new Tool("Devil Bar Clamp", "$15", new String[] {"12\" Capacity"}, description, R.drawable.clamp_other_03, R.drawable.thumbnail_clamp_other_03));
                tools.add(new Tool("Acme Bar Clamp", "$19", new String[] {"18\" Capacity"}, description, R.drawable.clamp_other_02, R.drawable.thumbnail_clamp_other_02));
                tools.add(new Tool("Bullet Bar Clamp", "$25", new String[] {"24\" Capacity"}, description, R.drawable.clamp_other_01, R.drawable.thumbnail_clamp_other_01));
                tools.add(new Tool("Couch Bar Clamp", "$30", new String[] {"36\" Capacity"}, description, R.drawable.clamp_other_03, R.drawable.thumbnail_clamp_other_03));
                tools.add(new Tool("Devil Bar Clamp", "$50", new String[] {"48\" Capacity"}, description, R.drawable.clamp_other_02, R.drawable.thumbnail_clamp_other_02));
                tools.add(new Tool("Acme Bar Clamp Assortment", "$50", new String[] {"5 Clamps"}, description, R.drawable.clamp_other_03, R.drawable.thumbnail_clamp_other_03));
                tools.add(new Tool("Bullet Bar Clamp Pack", "$55", new String[] {"8 Clamps"}, description, R.drawable.clamp_other_03, R.drawable.thumbnail_clamp_other_03));
                return tools;
            case R.string.toggle_clamps:
                tools.add(new Tool("Acme Toggle Clamp", "$5", new String[] {"1\" Capacity"}, description, R.drawable.clamp_other_01, R.drawable.thumbnail_clamp_other_01));
                tools.add(new Tool("Couch Toggle Clamp", "$12", new String[] {"1\" Capacity"}, description, R.drawable.clamp_other_02, R.drawable.thumbnail_clamp_other_02));
                tools.add(new Tool("Devil Toggle Clamp", "$15", new String[] {"2\" Capacity"}, description, R.drawable.clamp_other_01, R.drawable.thumbnail_clamp_other_01));
                tools.add(new Tool("Devil Toggle Clamp", "$15", new String[] {"2\" Capacity"}, description, R.drawable.clamp_other_03, R.drawable.thumbnail_clamp_other_03));
                tools.add(new Tool("Acme Toggle Clamp", "$19", new String[] {"3\" Capacity"}, description, R.drawable.clamp_other_03, R.drawable.thumbnail_clamp_other_03));
                tools.add(new Tool("Bullet Toggle Clamp", "$25", new String[] {"5\" Capacity"}, description, R.drawable.clamp_other_01, R.drawable.thumbnail_clamp_other_01));
                tools.add(new Tool("Couch Toggle Clamp", "$30", new String[] {"5\" Capacity"}, description, R.drawable.clamp_other_03, R.drawable.thumbnail_clamp_other_03));
                tools.add(new Tool("Devil Toggle Clamp", "$50", new String[] {"6\" Capacity"}, description, R.drawable.clamp_other_02, R.drawable.thumbnail_clamp_other_02));
                tools.add(new Tool("Acme Toggle Clamp Assortment", "$50", new String[] {"5 Clamps"}, description, R.drawable.clamp_other_03, R.drawable.thumbnail_clamp_other_03));
                tools.add(new Tool("Bullet Toggle Clamp Pack", "$55", new String[] {"8 Clamps"}, description, R.drawable.clamp_other_02, R.drawable.thumbnail_clamp_other_02));
                return tools;
        }
        return getGenericToolList(R.drawable.hero_image_clamps_1080);
    }

    private static List<Tool> getSaws(ToolTab toolTab) {
        final List<Tool> tools = new ArrayList<>();
        final String description = "";
        switch (toolTab.getStringResourceId()) {
            case R.string.table_saws:
            case R.string.band_saws:
// Path: chapter10/WoodworkingTools/app/src/main/java/com/iangclifton/woodworkingtools/Tool.java
// public class Tool implements Parcelable {
// 
//     private static final int DETAILS_COUNT = 3;
// 
//     private final String mName;
//     private final String mPrice;
//     private final String[] mDetails;
//     private final String mDescription;
//     private final int mImageResourceId;
//     private final int mThumbnailResourceId;
// 
//     public Tool(String name, String price, String[] details, String description, @DrawableRes int imageResourceId, @DrawableRes int thumbnailResourceId) {
//         mName = name;
//         mPrice = price;
//         mDetails = new String[DETAILS_COUNT];
//         if (details != null) {
//             System.arraycopy(details, 0, mDetails, 0, details.length);
//         }
//         mDescription = description;
//         mImageResourceId = imageResourceId;
//         mThumbnailResourceId = thumbnailResourceId;
//     }
// 
//     public String getDescription() {
//         return mDescription;
//     }
// 
//     public String[] getDetails() {
//         return mDetails;
//     }
// 
//     public String getName() {
//         return mName;
//     }
// 
//     public String getPrice() {
//         return mPrice;
//     }
// 
//     public int getImageResourceId() {
//         return mImageResourceId;
//     }
// 
//     public int getThumbnailResourceId() {
//         return mThumbnailResourceId;
//     }
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeString(mName);
//         dest.writeString(mPrice);
//         dest.writeStringArray(mDetails);
//         dest.writeString(mDescription);
//         dest.writeInt(mImageResourceId);
//         dest.writeInt(mThumbnailResourceId);
//     }
// 
//     private Tool(Parcel in) {
//         mName = in.readString();
//         mPrice = in.readString();
//         mDetails = in.createStringArray();
//         mDescription = in.readString();
//         mImageResourceId = in.readInt();
//         mThumbnailResourceId = in.readInt();
//     }
// 
//     public static final Parcelable.Creator<Tool> CREATOR = new Parcelable.Creator<Tool>() {
//         public Tool createFromParcel(Parcel source) {
//             return new Tool(source);
//         }
// 
//         public Tool[] newArray(int size) {
//             return new Tool[size];
//         }
//     };
// }


// Path: chapter10/WoodworkingTools/app/src/main/java/com/iangclifton/woodworkingtools/toollist/ToolListGenerator.java
import android.support.annotation.DrawableRes;
import com.iangclifton.woodworkingtools.R;
import com.iangclifton.woodworkingtools.Tool;
import java.util.ArrayList;
import java.util.List;

                tools.add(new Tool("Devil Bar Clamp", "$15", new String[] {"12\" Capacity"}, description, R.drawable.clamp_other_03, R.drawable.thumbnail_clamp_other_03));
                tools.add(new Tool("Acme Bar Clamp", "$19", new String[] {"18\" Capacity"}, description, R.drawable.clamp_other_02, R.drawable.thumbnail_clamp_other_02));
                tools.add(new Tool("Bullet Bar Clamp", "$25", new String[] {"24\" Capacity"}, description, R.drawable.clamp_other_01, R.drawable.thumbnail_clamp_other_01));
                tools.add(new Tool("Couch Bar Clamp", "$30", new String[] {"36\" Capacity"}, description, R.drawable.clamp_other_03, R.drawable.thumbnail_clamp_other_03));
                tools.add(new Tool("Devil Bar Clamp", "$50", new String[] {"48\" Capacity"}, description, R.drawable.clamp_other_02, R.drawable.thumbnail_clamp_other_02));
                tools.add(new Tool("Acme Bar Clamp Assortment", "$50", new String[] {"5 Clamps"}, description, R.drawable.clamp_other_03, R.drawable.thumbnail_clamp_other_03));
                tools.add(new Tool("Bullet Bar Clamp Pack", "$55", new String[] {"8 Clamps"}, description, R.drawable.clamp_other_03, R.drawable.thumbnail_clamp_other_03));
                return tools;
            case R.string.toggle_clamps:
                tools.add(new Tool("Acme Toggle Clamp", "$5", new String[] {"1\" Capacity"}, description, R.drawable.clamp_other_01, R.drawable.thumbnail_clamp_other_01));
                tools.add(new Tool("Couch Toggle Clamp", "$12", new String[] {"1\" Capacity"}, description, R.drawable.clamp_other_02, R.drawable.thumbnail_clamp_other_02));
                tools.add(new Tool("Devil Toggle Clamp", "$15", new String[] {"2\" Capacity"}, description, R.drawable.clamp_other_01, R.drawable.thumbnail_clamp_other_01));
                tools.add(new Tool("Devil Toggle Clamp", "$15", new String[] {"2\" Capacity"}, description, R.drawable.clamp_other_03, R.drawable.thumbnail_clamp_other_03));
                tools.add(new Tool("Acme Toggle Clamp", "$19", new String[] {"3\" Capacity"}, description, R.drawable.clamp_other_03, R.drawable.thumbnail_clamp_other_03));
                tools.add(new Tool("Bullet Toggle Clamp", "$25", new String[] {"5\" Capacity"}, description, R.drawable.clamp_other_01, R.drawable.thumbnail_clamp_other_01));
                tools.add(new Tool("Couch Toggle Clamp", "$30", new String[] {"5\" Capacity"}, description, R.drawable.clamp_other_03, R.drawable.thumbnail_clamp_other_03));
                tools.add(new Tool("Devil Toggle Clamp", "$50", new String[] {"6\" Capacity"}, description, R.drawable.clamp_other_02, R.drawable.thumbnail_clamp_other_02));
                tools.add(new Tool("Acme Toggle Clamp Assortment", "$50", new String[] {"5 Clamps"}, description, R.drawable.clamp_other_03, R.drawable.thumbnail_clamp_other_03));
                tools.add(new Tool("Bullet Toggle Clamp Pack", "$55", new String[] {"8 Clamps"}, description, R.drawable.clamp_other_02, R.drawable.thumbnail_clamp_other_02));
                return tools;
        }
        return getGenericToolList(R.drawable.hero_image_clamps_1080);
    }

    private static List<Tool> getSaws(ToolTab toolTab) {
        final List<Tool> tools = new ArrayList<>();
        final String description = "";
        switch (toolTab.getStringResourceId()) {
            case R.string.table_saws:
            case R.string.band_saws:
            case R.string.jig_saws: