public class ArrayHelper extends Object
Modifier and Type | Method and Description |
---|---|
static String[] |
removeDuplicates(String[] array)
Remove duplicate entries in the array.
|
static String[] |
removeDuplicatesKeepingOrder(String[] array,
boolean ignoreEmptyStrings)
Remove duplicate entries in the array.
|
public static String[] removeDuplicates(String[] array)
array
- the array to checkpublic static String[] removeDuplicatesKeepingOrder(String[] array, boolean ignoreEmptyStrings)
array
- the array to checkignoreEmptyStrings
- filter empty strings and do not include them in the result arrayCopyright © 2019 Communote team. All rights reserved.