Java List Print getGenBlueprintName(String slavenodelist, List masterList)

Here you can find the source of getGenBlueprintName(String slavenodelist, List masterList)

Description

get Gen Blueprint Name

License

Apache License

Declaration

public static String getGenBlueprintName(String slavenodelist,
            List<String> masterList) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.List;

public class Main {
    public static String getGenBlueprintName(String slavenodelist,
            List<String> masterList) {
        String blueprint;/* w  w  w.j a v a 2  s. c  o  m*/
        if (slavenodelist.isEmpty() && masterList.size() == 1) {
            blueprint = "blueprint1m";
        } else if (masterList.size() == 1) {
            blueprint = "blueprint1mXd";
        } else if (masterList.size() == 2) {
            blueprint = "blueprint2mXd";
        } else {
            blueprint = "blueprint3mXd";
        }
        return blueprint;
    }
}

Related

  1. limitLengthOfPrintedList(Collection list)
  2. prettyList(final List list)
  3. prettyList(List list)
  4. prettyPrint(List userPermissions)