public static List<QuotaType> getQuotaTypes(List<String> strQuotaTypes) {
        if(strQuotaTypes.size() < 1) {
            throw new VoldemortException("Quota type not specified.");
        }
        List<QuotaType> quotaTypes;
        if(strQuotaTypes.size() == 1 && strQuotaTypes.get(0).equals(AdminToolUtils.QUOTATYPE_ALL)) {
            quotaTypes = Arrays.asList(QuotaType.values());
        } else {
            quotaTypes = new ArrayList<QuotaType>();
            for(String strQuotaType: strQuotaTypes) {
                QuotaType type = QuotaType.valueOf(strQuotaType);
                quotaTypes.add(type);
            }
        }
        return quotaTypes;
    }
public static List < QuotaType > getQuotaTypes ( List < String > strQuotaTypes ) { if ( strQuotaTypes . size ( ) < 1 ) { throw new VoldemortException ( "Quota type not specified." ) ; } List < QuotaType > quotaTypes ; if ( strQuotaTypes . size ( ) == 1 && strQuotaTypes . get ( 0 ) . equals ( AdminToolUtils . QUOTATYPE_ALL ) ) { quotaTypes = Arrays . asList ( QuotaType . values ( ) ) ; } else { quotaTypes = new ArrayList < QuotaType > ( ) ; for ( String strQuotaType : strQuotaTypes ) { QuotaType type = QuotaType . valueOf ( strQuotaType ) ; quotaTypes . add ( type ) ; } } return quotaTypes ; }
Utility function that fetches quota types.