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



  • Posts

    • WIPE ! NEW SEASON GRAND OPENING FROM TODAY ! - 23/01/2026, FRIDAY, 20:00 +3 GMT !
    • https://vpslab.cloud/ Premium DDoS Protection now included with every server.
    • # Changelog - Public Updates   This changelog tracks user-facing updates and improvements to Top.MaxCheaters.com.   ---   ## [1.2.0] - 2026-01-XX   ### ⚡ Performance Improvements - **Faster Page Loads**: Implemented intelligent caching system that makes pages load significantly faster - **My Servers Page**: Now loads instantly when revisiting (no more loading delays) - **Main Page**: Server listings and filters now load faster on repeat visits - **Premium Ads**: Pricing information loads instantly - **Overall Performance**: Site now loads 60-80% faster with reduced server load   ### 🔄 Improvements - Pages now remember recent data, reducing wait times when navigating - Automatic cache refresh ensures you always see up-to-date information - Better user experience with instant page loads on repeat visits   ---   ## [1.1.1] - 2026-01-XX   ### 🐛 Bug Fixes - **VIP Server Filter**: Fixed "VIP L2 Servers" filter to correctly show all premium tier servers (VIP, Gold VIP, and Pinned) - **Ad Pricing Display**: Fixed ad pricing on Premium Ads page to automatically update when changed in admin panel   ### 🔄 Improvements - Ad pricing now syncs automatically across all pages - More accurate server filtering by tier   ---   ## [1.1.0] - 2026-01-XX   ### ✨ New Features - **Complete Chronicle List**: All chronicle options are now available in server forms and filters, including the latest Lineage 2 chronicles - **Improved Chronicle Display**: Server rows now show cleaner, shorter chronicle names for better readability   ### 🐛 Bug Fixes - **Chronicle Filter**: Fixed issue where "Infinite Odyssey" chronicle filter was not working correctly - **Missing Chronicles**: Fixed missing chronicle options in server creation and editing forms   ### 🔄 Improvements - Chronicle filters and dropdowns now stay in sync with the latest available chronicles - Better chronicle name formatting in server listings for improved visual clarity   ---   ## [1.0.0] - Initial Release   ### Features - 🎮 Server listings with multiple tiers (Normal, VIP, Gold VIP, Pinned) - 📊 Click tracking and server statistics - 🌍 Multi-language support (English, Spanish, Portuguese, Greek, Russian) - 💳 Payment system for premium server features - 🔐 Secure authentication system - 👑 Admin panel for server management - 📱 Fully responsive design for all devices - 🔍 Advanced filtering system (by chronicle, rate, server type, date) - 📅 Server opening date tracking - 🎯 Two viewing modes: By Date and By Votes (coming soon for all users)   ---   ## About This Changelog   This changelog focuses on updates that directly impact the user experience. Internal development changes and technical improvements are not included here.   For questions or feedback, please contact support.v
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..