public class Entity extends Object implements Comparable<Entity>, Serializable
Constructor and Description |
---|
Entity(int id)
builds an entity with identifier
id . |
Entity(int id,
int frequency)
builds an entity with identifier
id and frequency
frequency |
Modifier and Type | Method and Description |
---|---|
Entity |
clone() |
int |
compareTo(Entity o) |
boolean |
equals(Object obj) |
int |
getFrequency() |
int |
getId() |
int |
hashCode() |
static boolean |
isDisambiguation(int id) |
void |
setFrequency(int frequency) |
void |
setId(int id)
sets the entity integer identifier (i.e., wikiId)
|
String |
toString() |
public Entity(int id, int frequency)
id
and frequency
frequency
id
- the entity integer identifier (i.e., wikiId)frequency
- how many times the entity is linked in the knowledge basepublic Entity(int id)
id
.id
- the entity integer identifier (i.e., wikiId)public int getId()
public void setId(int id)
public int getFrequency()
public void setFrequency(int frequency)
public static boolean isDisambiguation(int id)
public int compareTo(Entity o)
compareTo
in interface Comparable<Entity>
Copyright © 2013. All rights reserved.