Solved HashMap 3 parameters?

Discussion in 'Plugin Development' started by ItsComits, Dec 29, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    ItsComits

    Hello, I am trying to figure out a way that would allow me to use a hashmap with 3 parameters.
    (HashMap<param1,param2,param3>)
    I want to create a map that will take the parameters UUID, List<String>, [].
    How would I accomplish this and any help is greatly appreciated.
     
  2. Offline

    RunsWithShovels

    What is the third parameter for? Also in general what are you attempting to accomplish.

    You can make a map that has a map inside like:

    Map<UUID, map<integer, string>

    But I don't believe that's what you're looking for.
     
  3. Offline

    Zombie_Striker

    @ItsComits
    If you wanted to create a system that requires two variables to give a third, turn the key into an object that can store both of the two variables.

    If your intention was to create a system that takes in one variable and returns two, turn the value into an object that can store both of the variables.
     
Thread Status:
Not open for further replies.

Share This Page