Jump to content
  • 0

Fastlist -> Arraylist Acis


Question

Posted (edited)

http://imgur.com/a/1oYgm

protected int getWinnerTeam()
	{
		ArrayList<EventTeam> t = new ArrayList<>();
		
		for (EventTeam team : teams.values())
		{
			if (t.size() == 0)
			{
				t.add(team);
				continue;
			}
			
			if (team.getScore() > t.getFirst().getScore())
			{
				t.clear();
				t.add(team);
				continue;
			}
			
			if (team.getScore() == t.getFirst().getScore())
				t.add(team);
		}
		
		if (t.size() > 1)
			return 0;
		
		return t.getFirst().getId();
	}

getFirst () must be replaced by what?

Edited by L2shaken

Recommended Posts

  • 0
Posted

"trashed by the elseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseif guy

 

 

feels bad XD

  • 0
Posted

"trashed by the elseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseif guy

 

 

feels bad XD

3 years ago maybe. I'm not the guy that wrote IWorld.something tho :'(

  • 0
Posted (edited)

I've edited read again. Fun was a wrong word to say.

 

Showing off or helping? Get your shit straight mate.

Yeah you are really helping showing your reconnect code out of context without the methods that are backing it up and by just saying "my custom cool thing does that"

Edited by .Elfocrash
  • 0
Posted

True you didn't actualy answer in my question, you posted a file with methods that just names but still 

if we had to choose between lists, which one would be the fastest to store players data upon event just to use them on reconnect.

 

ConcurrentHashhMap ?

  • 0
Posted

Yeah you are really helping showing your reconnect code out of context without the methods that are backing it up and by just saying "my custom cool thing does that"

 

I love it when I get rekt

  • 0
Posted

Ya, alextoti approves.

The funny moment when you start thinking how many timers are running, how many connections and how many times you used FastList :3

AlexToti wouldn't aprove of that lel

  • 0
Posted

It's funny to see the man that judges everyone and everything finally getting a taste of his own medicine.

 

Well played Elfo, well played.

  • 0
Posted (edited)

It's funny to see the man that judges everyone and everything finally getting a taste of his own medicine.

 

Well played Elfo, well played.

Idk why but you're the most mother fucker awesome :3 but don't be cruel with him he is good guy :)

Edited by AccessDenied
  • 0
Posted

It's funny to see the man that judges everyone and everything finally getting a taste of his own medicine.

 

Well played Elfo, well played.

 

Its funny that I am getting blamed for using a static method on an Interface, even if I clarified why I did that I am still getting blamed. Probably both of you don't know what static truly means. 

 

Licking just for no reason.

 

Well played retard, well played.

  • 0
Posted

Its funny that I am getting blamed for using a static method on an Interface, even if I clarified why I did that I am still getting blamed. Probably both of you don't know what static truly means. 

 

Licking just for no reason.

 

Well played retard, well played.

I didn't blame anyone, nor licked. I just like the fact that for once you are on "defensive" and not the typical moron you usually are ^^

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...