@Named @ViewScoped public class NamesBean extends Object implements Serializable
Constructor and Description |
---|
NamesBean() |
Modifier and Type | Method and Description |
---|---|
Map<String,Integer> |
getFirstNameFrequency() |
List<Map.Entry<String,Integer>> |
getFirstNameFrequencyList()
Returns a list of first names to the number of occurences (frequency) of that name.
|
Map<String,Integer> |
getLastNameFrequency() |
List<Map.Entry<String,Integer>> |
getLastNameFrequencyList()
Returns a list of last names to the number of occurences (frequency) of that name.
|
public List<Map.Entry<String,Integer>> getFirstNameFrequencyList()
These values are first put into a LinkedHashMap
then converted into a List
of Map.Entry
.
This is to allow use in PrimeFaces' datatable JSF element.
NamesDataBean.firstNameFrequency()
public List<Map.Entry<String,Integer>> getLastNameFrequencyList()
These values are last put into a LinkedHashMap
then converted into a List
of Map.Entry
.
This is to allow use in PrimeFaces' datatable JSF element.
NamesDataBean.lastNameFrequency()
Copyright © 2015 Joseph Hendrix