public class Keyword extends Object implements Comparable<Keyword>
| Constructor and Description |
|---|
Keyword(String name,
double score) |
Keyword(String name,
int docFreq,
double weight) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Keyword o) |
boolean |
equals(Object obj) |
int |
getFreq() |
String |
getName() |
double |
getScore() |
void |
setName(String name) |
void |
setScore(double score) |
String |
toString() |
void |
updateWeight(int weight) |
public Keyword(String name, int docFreq, double weight)
public Keyword(String name, double score)
public void updateWeight(int weight)
public int getFreq()
public int compareTo(Keyword o)
compareTo in interface Comparable<Keyword>public String getName()
public void setName(String name)
public double getScore()
public void setScore(double score)
Copyright © 2017. All rights reserved.