// Path: app/src/main/java/org/pquery/util/MyColors.java
// public class MyColors {
//     public static String LIME = "#00FF00";
//     public static String MEGENTA = "#FF00FF";
// }


import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import org.pquery.R;
import org.pquery.util.MyColors;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
            }
        }

        Collections.sort(inner);
    }

    /**
     * Encode the country list into a comma separated country code string
     * If ALL countries are selected then 'null' is returned
     *
     * @return encoded string or null
     */
    public String toString() {
        if (isAll())
            return null;                             // all countries

        String ret = "";
        for (Country country : inner) {
            ret += country.getCode() + ",";
        }
        return ret;
    }

    public String toLocalisedString(Resources res) {
        if (isAll())
            return "<font color='" + MyColors.LIME + "'>" + res.getString(R.string.any) + "</font>";
        if (isNone())
            return "<font color='red'>" + res.getString(R.string.none) + "</font>";

        StringBuffer ret = new StringBuffer();
// Path: app/src/main/java/org/pquery/util/MyColors.java
// public class MyColors {
//     public static String LIME = "#00FF00";
//     public static String MEGENTA = "#FF00FF";
// }


// Path: app/src/main/java/org/pquery/filter/CountryList.java
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import org.pquery.R;
import org.pquery.util.MyColors;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;

            }
        }

        Collections.sort(inner);
    }

    /**
     * Encode the country list into a comma separated country code string
     * If ALL countries are selected then 'null' is returned
     *
     * @return encoded string or null
     */
    public String toString() {
        if (isAll())
            return null;                             // all countries

        String ret = "";
        for (Country country : inner) {
            ret += country.getCode() + ",";
        }
        return ret;
    }

    public String toLocalisedString(Resources res) {
        if (isAll())
            return "<font color='" + MyColors.LIME + "'>" + res.getString(R.string.any) + "</font>";
        if (isNone())
            return "<font color='red'>" + res.getString(R.string.none) + "</font>";

        StringBuffer ret = new StringBuffer();
        ret.append("<font color='" + MyColors.MEGENTA + "'>");