edu.northwestern.at.wordhoard.model.grouping
Class PubDecade

java.lang.Object
  extended by edu.northwestern.at.wordhoard.model.grouping.PubDecade
All Implemented Interfaces:
GroupingObject

public class PubDecade
extends java.lang.Object
implements GroupingObject

A publication decade grouping object.


Constructor Summary
PubDecade()
          Creates a new publication decade grouping object.
PubDecade(int startYear)
          Creates a new publication decade grouping object.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Returns true if this object is equal to some other object.
 Spelling getGroupingSpelling(int numHits)
          Gets the spelling of the grouping object.
 java.lang.String getReportPhrase()
          Gets the report phrase.
 int getStartYear()
          Gets the start year of the decade.
 int hashCode()
          Returns a hash code for the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PubDecade

public PubDecade()
Creates a new publication decade grouping object.


PubDecade

public PubDecade(int startYear)
Creates a new publication decade grouping object.

Parameters:
startYear - The start year of the decade.
Method Detail

getStartYear

public int getStartYear()
Gets the start year of the decade.

Returns:
The start year of the decade.

getReportPhrase

public java.lang.String getReportPhrase()
Gets the report phrase.

Specified by:
getReportPhrase in interface GroupingObject
Returns:
The report phrase "in".

getGroupingSpelling

public Spelling getGroupingSpelling(int numHits)
Gets the spelling of the grouping object.

Specified by:
getGroupingSpelling in interface GroupingObject
Parameters:
numHits - Number of hits.
Returns:
The spelling of the grouping object.

equals

public boolean equals(java.lang.Object obj)
Returns true if this object is equal to some other object.

Specified by:
equals in interface GroupingObject
Overrides:
equals in class java.lang.Object
Parameters:
obj - The other object.
Returns:
True if this object equals the other object.

hashCode

public int hashCode()
Returns a hash code for the object.

Specified by:
hashCode in interface GroupingObject
Overrides:
hashCode in class java.lang.Object
Returns:
The hash code.