/*
 * Copyright 2016 Sascha Peilicke
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package saschpe.poker.util;

import android.support.annotation.IntDef;
import android.support.v4.util.SimpleArrayMap;
import android.util.SparseIntArray;

import java.util.Arrays;
import java.util.List;

public final class PlanningPoker {
    public static final int FIBONACCI = 1;
    public static final int T_SHIRT_SIZES = 2;
    public static final int IDEAL_DAYS = 3;
    @IntDef({FIBONACCI, T_SHIRT_SIZES, IDEAL_DAYS})
    public @interface Flavor {}

    public static final SimpleArrayMap<Integer, List<String>> VALUES = new SimpleArrayMap<>(3);
    static {
        // Use an "@" for coffee, because "☕" doesn't render correctly on most devices
        VALUES.put(FIBONACCI, Arrays.asList("0", "½", "1", "2", "3", "5", "8", "13", "20", "40", "100", "?", "@"));
        VALUES.put(T_SHIRT_SIZES, Arrays.asList("XS", "S", "M", "L", "XL", "XXL"));
        VALUES.put(IDEAL_DAYS, Arrays.asList("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11+"));
    }

    public static final SparseIntArray DEFAULTS = new SparseIntArray(3);
    static {
        DEFAULTS.append(FIBONACCI, 5);
        DEFAULTS.append(T_SHIRT_SIZES, 2);
        DEFAULTS.append(IDEAL_DAYS, 5);
    }
}


/*
 * Copyright 2016 Sascha Peilicke
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package saschpe.poker.util;

import android.support.annotation.IntDef;
import android.support.v4.util.SimpleArrayMap;
import android.util.SparseIntArray;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.Arrays;
import java.util.List;

public final class PlanningPoker {
    public static final int FIBONACCI = 1;
    public static final int T_SHIRT_SIZES = 2;
    public static final int IDEAL_DAYS = 3;
    @IntDef({FIBONACCI, T_SHIRT_SIZES, IDEAL_DAYS})
    @Retention(RetentionPolicy.SOURCE)
    public @interface Flavor {}

    public static final SimpleArrayMap<Integer, List<String>> VALUES = new SimpleArrayMap<>(3);
    static {
        // Use an "@" for coffee, because "☕" doesn't render correctly on most devices
        VALUES.put(FIBONACCI, Arrays.asList("0", "½", "1", "2", "3", "5", "8", "13", "20", "40", "100", "?", "@"));
        VALUES.put(T_SHIRT_SIZES, Arrays.asList("XS", "S", "M", "L", "XL", "XXL"));
        VALUES.put(IDEAL_DAYS, Arrays.asList("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11+"));
    }

    public static final SparseIntArray DEFAULTS = new SparseIntArray(3);
    static {
        DEFAULTS.append(FIBONACCI, 5);
        DEFAULTS.append(T_SHIRT_SIZES, 2);
        DEFAULTS.append(IDEAL_DAYS, 5);
    }
}


Add RetentionPolicy to flavor