Jump to content
  • 0

Fastlist -> Arraylist Acis


L2shaken

Question

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
Link to comment
Share on other sites

Recommended Posts

  • 0

"trashed by the elseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseifelseif guy

 

 

feels bad XD

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

Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

  • 0

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 ?

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

That's when people that don't understand shit enter a debate

You can also argue with us.. its fun come on.. I argue with SweeTs, xdem with Elfo,  you can argue with Versus

Link to comment
Share on other sites

  • 0

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 ^^

Link to comment
Share on other sites

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...