public enum NameComparator extends Enum<NameComparator>
| Enum Constant and Description |
|---|
INSTANCE
The singleton
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(List<String> namesList,
String name,
CaseComparison comparison)
Returns if
namesList contains name by comparing using comparison. |
int |
indexOf(List<String> namesList,
String name,
CaseComparison comparison)
Returns the index of
namein namesList by comparing using comparison. |
static NameComparator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NameComparator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NameComparator INSTANCE
public static NameComparator[] values()
for (NameComparator c : NameComparator.values()) System.out.println(c);
public static NameComparator valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean contains(List<String> namesList, String name, CaseComparison comparison)
namesList contains name by comparing using comparison.namesList - List of names which can contain the name.name - The name to search.comparison - Case comparison to compare the name.public int indexOf(List<String> namesList, String name, CaseComparison comparison)
namein namesList by comparing using comparison.namesList - List of names which can contain the name.name - The name to search.comparison - Case comparison to compare the name.Copyright © 2015–2017 AssertJ. All rights reserved.