// Path: src/main/java/de/mprengemann/intellij/plugin/androidicons/util/TextUtils.java
// public final class TextUtils {
//     private TextUtils() {
//     }
// 
//     public static boolean isEmpty(final CharSequence s) {
//         return s == null || s.length() == 0;
//     }
// 
//     public static boolean isBlank(final CharSequence s) {
//         if (s == null) {
//             return true;
//         }
//         for (int i = 0; i < s.length(); i++) {
//             if (Character.isWhitespace(s.charAt(i))) {
//                 continue;
//             }
//             return false;
//         }
//         return true;
//     }
// }


import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonParseException;
import de.mprengemann.intellij.plugin.androidicons.util.TextUtils;
import java.lang.reflect.Type;
/*
 * Copyright 2015 Marc Prengemann
 *
 * 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 de.mprengemann.intellij.plugin.androidicons.model;



public enum Resolution {
    LDPI,
    MDPI,
    HDPI,
    XHDPI,
    XXHDPI,
    XXXHDPI,
    TVDPI,
    ANYDPI;

    private static final Resolution[] RESOLUTIONS_WITHOUT_SVG = new Resolution[] {
        LDPI, MDPI, HDPI, XHDPI, XXHDPI, XXXHDPI, TVDPI
    };

    public static Resolution[] nonVectorValues() {
        return RESOLUTIONS_WITHOUT_SVG;
    }

    public static Resolution from(String value) {
// Path: src/main/java/de/mprengemann/intellij/plugin/androidicons/util/TextUtils.java
// public final class TextUtils {
//     private TextUtils() {
//     }
// 
//     public static boolean isEmpty(final CharSequence s) {
//         return s == null || s.length() == 0;
//     }
// 
//     public static boolean isBlank(final CharSequence s) {
//         if (s == null) {
//             return true;
//         }
//         for (int i = 0; i < s.length(); i++) {
//             if (Character.isWhitespace(s.charAt(i))) {
//                 continue;
//             }
//             return false;
//         }
//         return true;
//     }
// }


// Path: src/main/java/de/mprengemann/intellij/plugin/androidicons/model/Resolution.java
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonParseException;
import de.mprengemann.intellij.plugin.androidicons.util.TextUtils;
import java.lang.reflect.Type;

/*
 * Copyright 2015 Marc Prengemann
 *
 * 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 de.mprengemann.intellij.plugin.androidicons.model;



public enum Resolution {
    LDPI,
    MDPI,
    HDPI,
    XHDPI,
    XXHDPI,
    XXXHDPI,
    TVDPI,
    ANYDPI;

    private static final Resolution[] RESOLUTIONS_WITHOUT_SVG = new Resolution[] {
        LDPI, MDPI, HDPI, XHDPI, XXHDPI, XXXHDPI, TVDPI
    };

    public static Resolution[] nonVectorValues() {
        return RESOLUTIONS_WITHOUT_SVG;
    }

    public static Resolution from(String value) {
        if (TextUtils.isEmpty(value)) {