All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.tadeuespindolapalermo.itprojectsupport.array.ArrayProcessingOperations Maven / Gradle / Ivy

Go to download

This framework aims to help developers through features that are usually common to IT projects, especially those that involve software development!

There is a newer version: 1.4_NEXT
Show newest version
package com.github.tadeuespindolapalermo.itprojectsupport.array;

/**
 * (en-us)
 * 

* Utility class responsible for processing operations and manipulation in data structure of type Array *

* (pt-br) *

* Classe utilitária responsável por processar operações e manipulação em estrutura de dados do tipo Array * * @author Tadeu Espíndola Palermo * @since v1.0 *

* Date: 19/10/2018 */ public class ArrayProcessingOperations { /** * (en-us)

* * Method used for creating array of integer type elements. * Enter in the parameter only the array elements. * This method returns the array entered in the method parameter. * * Simple example of use:

*

	 * createArrayOfIntegers(15, 7, 41, 602, 600, 945, 28, 34, 88, 89);
	 * 
* * (pt-br)

* Método utilizado para a criação de array de elementos do tipo inteiro. * Informe no parâmetro apenas os elementos do array. * Este método retorna o array informado no parâmetro do método. * * Exemplo simples de uso:

*

	 * createArrayOfIntegers(15, 7, 41, 602, 600, 945, 28, 34, 88, 89); 	
	 * 

* * @param array Array elements * @author Tadeu Espíndola Palermo * @return Array of elements entered in the method parameter * @since v1.0 *

* Date: 19/10/2018 */ public int[] createArrayOfIntegers(int... array) { return array; } /** * (en-us)

* Method used to get array length. * Enter in the parameter only the element array. * This method returns the length of the array entered in the method parameter. *

* Simple example of use: *

	 * ArrayProcessingOperations processing = new ArrayProcessingOperations();
	 * int[] array = ap.createArrayOfIntegers(15, 7, 41, 602, 600, 945, 28, 34, 88, 89);	
	 * processing.getArrayLength(array);
	 * 
* (pt-br)

* Método utilizado para obter o comprimento do array. * Informe no parâmetro apenas o array de elementos. * Este método retorna o comprimento do array informado no parâmetro do método. *

* Exemplo simples de uso: *

	 * ArrayProcessingOperations processing = new ArrayProcessingOperations();
	 * int[] array = ap.createArrayOfIntegers(15, 7, 41, 602, 600, 945, 28, 34, 88, 89);	
	 * processing.getArrayLength(array);	
	 * 
* * @param array Element array * @author Tadeu Espíndola Palermo * @return Length of array entered in method parameter * @since v1.0 *

* Date: 19/10/2018 */ public int getArrayLength(int... array) { return array.length; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy