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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock