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
name in 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)
name
in 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 © 2020 AssertJ. All rights reserved.