// Path: app/src/main/java/bf/io/openshop/entities/filtr/FilterValueSelect.java
// public class FilterValueSelect {
// 
//     private long id = 0;
//     private String value;
// 
//     public FilterValueSelect() {
//     }
// 
//     public FilterValueSelect(long id, String value) {
//         this.id = id;
//         this.value = value;
//     }
// 
//     public long getId() {
//         return id;
//     }
// 
//     public void setId(long id) {
//         this.id = id;
//     }
// 
//     public String getValue() {
//         return value;
//     }
// 
//     public void setValue(String value) {
//         this.value = value;
//     }
// 
//     @Override
//     public boolean equals(Object o) {
//         if (this == o) return true;
//         if (o == null || getClass() != o.getClass()) return false;
// 
//         FilterValueSelect that = (FilterValueSelect) o;
// 
//         if (id != that.id) return false;
//         return !(value != null ? !value.equals(that.value) : that.value != null);
// 
//     }
// 
//     @Override
//     public int hashCode() {
//         int result = (int) (id ^ (id >>> 32));
//         result = 31 * result + (value != null ? value.hashCode() : 0);
//         return result;
//     }
// 
//     @Override
//     public String toString() {
//         return "FilterValueSelect{" +
//                 "id=" + id +
//                 ", value='" + value + '\'' +
//                 '}';
//     }
// }


import android.content.Context;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;
import bf.io.openshop.R;
import bf.io.openshop.entities.filtr.FilterValueSelect;
import timber.log.Timber;
package bf.io.openshop.UX.adapters;




/**
 * Simple filter arrayAdapter for select type selection.
 */
public class FilterSelectSpinnerAdapter extends ArrayAdapter<FilterValueSelect> {
    private static final int layoutID = R.layout.spinner_item_product_size;
    private final LayoutInflater layoutInflater;

    private List<FilterValueSelect> selectValuesList;

    /**
     * Creates an filter adapter for select type selection.
     *
     * @param context activity context.
     */
    public FilterSelectSpinnerAdapter(Context context) {
        super(context, layoutID);
        this.selectValuesList = new ArrayList<>();
        this.layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    }

    public int getCount() {
        return selectValuesList.size();
    }

    public FilterValueSelect getItem(int position) {
        return selectValuesList.get(position);
    }

    public long getItemId(int position) {
        return selectValuesList.get(position).getId();
    }

// Path: app/src/main/java/bf/io/openshop/entities/filtr/FilterValueSelect.java
// public class FilterValueSelect {
// 
//     private long id = 0;
//     private String value;
// 
//     public FilterValueSelect() {
//     }
// 
//     public FilterValueSelect(long id, String value) {
//         this.id = id;
//         this.value = value;
//     }
// 
//     public long getId() {
//         return id;
//     }
// 
//     public void setId(long id) {
//         this.id = id;
//     }
// 
//     public String getValue() {
//         return value;
//     }
// 
//     public void setValue(String value) {
//         this.value = value;
//     }
// 
//     @Override
//     public boolean equals(Object o) {
//         if (this == o) return true;
//         if (o == null || getClass() != o.getClass()) return false;
// 
//         FilterValueSelect that = (FilterValueSelect) o;
// 
//         if (id != that.id) return false;
//         return !(value != null ? !value.equals(that.value) : that.value != null);
// 
//     }
// 
//     @Override
//     public int hashCode() {
//         int result = (int) (id ^ (id >>> 32));
//         result = 31 * result + (value != null ? value.hashCode() : 0);
//         return result;
//     }
// 
//     @Override
//     public String toString() {
//         return "FilterValueSelect{" +
//                 "id=" + id +
//                 ", value='" + value + '\'' +
//                 '}';
//     }
// }


// Path: app/src/main/java/bf/io/openshop/UX/adapters/FilterSelectSpinnerAdapter.java
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;
import bf.io.openshop.R;
import bf.io.openshop.entities.filtr.FilterValueSelect;
import timber.log.Timber;

package bf.io.openshop.UX.adapters;




/**
 * Simple filter arrayAdapter for select type selection.
 */
public class FilterSelectSpinnerAdapter extends ArrayAdapter<FilterValueSelect> {
    private static final int layoutID = R.layout.spinner_item_product_size;
    private final LayoutInflater layoutInflater;

    private List<FilterValueSelect> selectValuesList;

    /**
     * Creates an filter adapter for select type selection.
     *
     * @param context activity context.
     */
    public FilterSelectSpinnerAdapter(Context context) {
        super(context, layoutID);
        this.selectValuesList = new ArrayList<>();
        this.layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    }

    public int getCount() {
        return selectValuesList.size();
    }

    public FilterValueSelect getItem(int position) {
        return selectValuesList.get(position);
    }

    public long getItemId(int position) {
        return selectValuesList.get(position).getId();
    }

    public void setSelectValuesList(List<FilterValueSelect> selectValues) {