public class GenderDictionary extends Object
| Modifier and Type | Field and Description |
|---|---|
private boolean |
caseSensitive |
protected Set<String> |
female |
protected Set<String> |
male |
| Modifier | Constructor and Description |
|---|---|
protected |
GenderDictionary() |
|
GenderDictionary(Set<String> male,
Set<String> female) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFemale(String name)
Checks whether the name is contained in the list of female gender names.
|
boolean |
isMale(String name)
Checks whether the name is contained in the list of male gender names.
|
void |
setCaseSensitive(boolean caseSensitive) |
public boolean isMale(String name)
name - the namepublic boolean isFemale(String name)
name - the namepublic void setCaseSensitive(boolean caseSensitive)
Copyright © 2020. All rights reserved.