org.gcube.dir.master.index
Interface Term<TS extends TermStats>

Type Parameters:
TS - the type of TermStats of the term.
All Known Implementing Classes:
DefaultTerm

public interface Term<TS extends TermStats>

Defines the behaviour of a term which occurs in the content of some collection.

Author:
Fabio Simeoni (University of Strathclyde)

Method Summary
 java.lang.String getName()
          Returns the name of the term.
 TS getStats()
          Returns the statistics of the term.
 void setName(java.lang.String name)
          Sets the name of the term.
 void setStats(TS stats)
          Sets the statistics of the term.
 

Method Detail

setName

void setName(java.lang.String name)
Sets the name of the term.

Parameters:
name - the name.

getName

java.lang.String getName()
Returns the name of the term.

Returns:
the name.

setStats

void setStats(TS stats)
Sets the statistics of the term.

Parameters:
stats - the statistics.

getStats

TS getStats()
Returns the statistics of the term.

Returns:
the statistics.