Here you can find the source of getGenBlueprintName(String slavenodelist, List
public static String getGenBlueprintName(String slavenodelist, List<String> masterList)
//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; } }