Back to project page PrettyBundle.
The source code is released under:
Apache License
If you think the Android project PrettyBundle listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.tale.prettybundle.internal; //from ww w . j a va2 s . c om import java.util.ArrayList; import java.util.List; /** * Created by tale on 2/5/15. */ public class ExtraClassesGrouped { private final String packageName; private final String extraAnnotatedClassName; private List<ExtraAnnotatedClass> extraAnnotatedClasses = new ArrayList<ExtraAnnotatedClass>(); private SupportedType supportedType = SupportedType.NOP; public ExtraClassesGrouped(String extraAnnotatedClassName) { this.extraAnnotatedClassName = extraAnnotatedClassName; final int lastIndexOfDot = extraAnnotatedClassName.lastIndexOf("."); packageName = extraAnnotatedClassName.substring(0, lastIndexOfDot); } public void add(ExtraAnnotatedClass extraAnnotatedClass) { if (extraAnnotatedClass == null) { return; } if (supportedType == SupportedType.NOP) { supportedType = extraAnnotatedClass.getSupportedType(); } extraAnnotatedClasses.add(extraAnnotatedClass); } public String getExtraAnnotatedClassName() { return extraAnnotatedClassName; } public String getPackageName() { return packageName; } public List<ExtraAnnotatedClass> getExtraAnnotatedClasses() { return extraAnnotatedClasses; } public SupportedType getSupportedType() { return supportedType; } }