
package org.kordamp.ikonli.materialdesign2;

import org.kordamp.ikonli.Ikon;
import org.kordamp.ikonli.IkonHandler;
import org.kordamp.jipsy.annotations.ServiceProviderFor;

/**
 * @author Andres Almiray
 */
@ServiceProviderFor(IkonHandler.class)
public class MaterialDesignBIkonHandler extends AbstractMaterialDesignIkonHandler {
    @Override
    public boolean supports(String description) {
        return description != null && description.startsWith("mdi2b-");
    }

    @Override
    public Ikon resolve(String description) {
        return MaterialDesignB.findByDescription(description);
    }
}

