<commit_before>package org.andengine.entity.particle.initializer;

import org.andengine.entity.particle.Particle;
import org.andengine.entity.shape.Shape;

/**
 * Sets the blend function used to draw the particle during it's lifespan. Only applicable to Shapes.
 * 
 * @author janne.sinivirta
 *
 * @param <T> type of particle
 */
public class BlendFunctionInitializer<T extends Shape> implements IParticleInitializer<T> {

	protected int mSourceBlendFunction;
	protected int mDestinationBlendFunction;
	
	/**
	 * Blend function set for each spawned particle. Use GLES20 constants for setting functions.
	 * @param pSourceBlendFunction
	 * @param pDestinationBlendFunction
	 */
	public BlendFunctionInitializer(final int pSourceBlendFunction, final int pDestinationBlendFunction) {
		this.mSourceBlendFunction = pSourceBlendFunction;
		this.mDestinationBlendFunction = pDestinationBlendFunction;
	}

	@Override
	public void onInitializeParticle(Particle<T> pParticle) {
		pParticle.getEntity().setBlendFunction(mSourceBlendFunction, mDestinationBlendFunction);
	}
}
<commit_msg>Codestyle adaptions in BlendFunctionInitializer.<commit_after>package org.andengine.entity.particle.initializer;

import org.andengine.entity.particle.Particle;
import org.andengine.entity.shape.Shape;

import android.opengl.GLES20;

/**
 * Sets the blend function used to draw the {@link Particle} during its lifespan. Only applicable to {@link Shape}s.
 * 
 * @author janne.sinivirta
 * 
 * @since 17:24:32 - 28.12.2011
 */
public class BlendFunctionInitializer<T extends Shape> implements IParticleInitializer<T> {
	// ===========================================================
	// Constants
	// ===========================================================

	// ===========================================================
	// Fields
	// ===========================================================

	protected int mSourceBlendFunction;
	protected int mDestinationBlendFunction;

	// ===========================================================
	// Constructors
	// ===========================================================

	/**
	 * Blend function set for each spawned {@link Particle}. Use {@link GLES20} constants for setting functions.
	 */
	public BlendFunctionInitializer(final int pSourceBlendFunction, final int pDestinationBlendFunction) {
		this.mSourceBlendFunction = pSourceBlendFunction;
		this.mDestinationBlendFunction = pDestinationBlendFunction;
	}

	// ===========================================================
	// Getter & Setter
	// ===========================================================

	// ===========================================================
	// Methods for/from SuperClass/Interfaces
	// ===========================================================

	@Override
	public void onInitializeParticle(final Particle<T> pParticle) {
		pParticle.getEntity().setBlendFunction(this.mSourceBlendFunction, this.mDestinationBlendFunction);
	}

	// ===========================================================
	// Methods
	// ===========================================================

	// ===========================================================
	// Inner and Anonymous Classes
	// ===========================================================
}

{'fraction_non_alphanumeric': 0.3231857318573186, 'fraction_numerical': 0.006150061500615006, 'mean_word_length': 6.343115124153499, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '4156431', 'n_tokens_mistral': 866, 'n_tokens_neox': 775, 'n_words': 171}