|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbecker.xtras.nameSurfer.SampleNameInfo
public final class SampleNameInfo
Information about the popularity of one name.
| Constructor Summary | |
|---|---|
SampleNameInfo(Scanner in)
Construct a new NameInfo object. |
|
| Method Summary | |
|---|---|
String |
getName()
Get the name. |
int |
getRanking(int decade)
Find the ranking of this name for the given decade. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SampleNameInfo(Scanner in)
in - An open scanner object where one name and related info can
be read.| Method Detail |
|---|
public String getName()
getName in interface INameInfopublic int getRanking(int decade)
getRanking in interface INameInfodecade - The decade number, starting at 0.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||