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

I wouldn't have done it the way he did as it doesn't meet my standard (static method would be to disallow override bad impl eg), yet that's works as well and shouldn't be blamed. It's just for arguing really.

  • 0
Posted (edited)

I wouldn't have done it the way he did as it doesn't meet my standard (static method would be to disallow override bad impl eg), yet that's works as well and shouldn't be blamed. It's just for arguing really.

 

For gods sake its just a convenience method that toggles last known players instance pointer for global access on the project... Should I make another class, will that make any difference? I don't get it why we are even talking about this. Codecrash was desperately squeezing my codes line by line to find a flaw so he can trashtalk about. Then he talks about standards he doesn't even know about.

Edited by xxdem
  • 0
Posted

 I argue with SweeTs

But I am not arguing with ya. No one gives a damn about you :lol:

 

 

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

I was sure you are lurking around and sooner or later you show up :lol:

  • 0
Posted

For gods sake its just a convenience method that toggles last known players instance pointer for global access on the project... Should I make another class, will that make any difference? I don't get it why we are even talking about this. Codecrash was desperately squeezing my codes line by line to find a flaw so he can trashtalk about. Then he talks about standards he doesn't even know about.

Yeah I hate those util class as well.

 

Just it's not the purpose of interface static method but as I said it works great that way and can understand why you did it.

  • 0
Posted (edited)

Yeah I hate those util class as well.

 

Just it's not the purpose of interface static method but as I said it works great that way and can understand why you did it.

 

I am glad you get the point.

 

I agreed that static methods don't belong on interfaces for readability reasons, but a person with real knowledge knows that in the very end theres no actual difference. Static methods always belong to the class and even interfaces are always backed by one.

 

I bet that these noobs don't really know that even enums are actually classes and their values just pointers to self singleton references

Edited by xxdem
  • 0
Posted

It's so fucking hilarious. You judge EVERYONE in here (in a bad manner), for imperfect coding, i mean hell, you judged me without even looking at my coding and now that Elfo does the same thing to you, you feel the need to defend yourself.

 

That's what i meant by "a taste of your own medicine" and for some reason you and Sdw thought i was judging you as well, or licking Elfo. My point was, that if you judge everyone for the slightest things, be prepared for the same to happen to you.

  • 0
Posted

Yet, when you say things such as "Good job owning him", make sure you understand properly what you just read.

 

 

2 people arguing might be right, or wrong at the same time.

  • 0
Posted (edited)

Yet, when you say things such as "Good job owning him", make sure you understand properly what you just read.

 

 

2 people arguing might be right, or wrong at the same time.

Please read my post again, only thing i said was "well played", which i still believe because it's the first time i see this retard taking a defensive stance and not attacking everyone.

 

 

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.

Edited by Versus
  • 0
Posted

It's so fucking hilarious. You judge EVERYONE in here (in a bad manner), for imperfect coding, i mean hell, you judged me without even looking at my coding and now that Elfo does the same thing to you, you feel the need to defend yourself.

 

That's what i meant by "a taste of your own medicine" and for some reason you and Sdw thought i was judging you as well, or licking Elfo. My point was, that if you judge everyone for the slightest things, be prepared for the same to happen to you.

 

I welcome it, but his argument was shit, none was supposed to say good played at him

  • 0
Posted (edited)

lol, this topic is a masterpiece... :lol:

Take a step back and literally kiss your own face. This topic is valuable. Worths 4k euro more than  stalonka leech

Crawl back to your cave cause noone loves you :'( sad storki

Edited by AccessDenied
  • 0
Posted

Take a step back and literally kiss your own face. This topic is valuable. Worths 4k euro more than  stalonka leech

Crawl back to your cave cause noone loves you :'( sad storki

Me don't care... :lol:

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