<commit_before>/**
 *
 * EventoZero - Advanced event factory and executor for Bukkit and Spigot.
 * Copyright  2016 BlackHub OS and contributors.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */
package br.com.blackhubos.eventozero.party;

import java.util.Vector;

import org.bukkit.entity.Player;

public class Party {
	
	private final Vector<Player> joineds;
	private final Vector<Player> inviteds;
	private final int max;
	
	public Party(int max){
		this.joineds = new Vector<>();
		this.inviteds = new Vector<>();
		this.max = max;
	}
	
	public Player getOwner(){
		return this.joineds.get(0);
	}
	
	public Vector<Player> getJoineds(){
		return this.joineds;
	}
	
	public Vector<Player> getInviteds(){
		return this.inviteds;
	}
	
	public Party playerJoin(Player player){
		this.joineds.add(player);
		return this;
	}
	
	public Party playerQuit(Player player){
		this.joineds.remove(player);
		return this;
	}
	
	public Party playerJoinInvited(Player player){
		this.inviteds.addElement(player);
		return this;
	}
	
	public Party playerQuitInvited(Player player){
		this.inviteds.remove(player);
		return this;
	}

}<commit_msg>A classe foi tornada final e formatada.<commit_after>/**
 *
 * EventoZero - Advanced event factory and executor for Bukkit and Spigot.
 * Copyright � 2016 BlackHub OS and contributors.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */
package br.com.blackhubos.eventozero.party;

import java.util.Vector;

import org.bukkit.entity.Player;

public final class Party
{

	private final Vector<Player> joineds;
	private final Vector<Player> inviteds;
	private final int max;

	public Party(final int max)
	{
		this.joineds = new Vector<>();
		this.inviteds = new Vector<>();
		this.max = max;
	}

	public Player getOwner()
	{
		return this.joineds.get(0);
	}

	public Vector<Player> getJoineds()
	{
		return this.joineds;
	}

	public Vector<Player> getInviteds()
	{
		return this.inviteds;
	}

	public Party playerJoin(final Player player)
	{
		this.joineds.add(player);
		return this;
	}

	public Party playerQuit(final Player player)
	{
		this.joineds.remove(player);
		return this;
	}

	public Party playerJoinInvited(final Player player)
	{
		this.inviteds.addElement(player);
		return this;
	}

	public Party playerQuitInvited(final Player player)
	{
		this.inviteds.remove(player);
		return this;
	}

}
{'fraction_non_alphanumeric': 0.08967851099830795, 'fraction_numerical': 0.00338409475465313, 'mean_word_length': 3.9059474412171507, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3428160', 'n_tokens_mistral': 1129, 'n_tokens_neox': 1060, 'n_words': 395}