public class Slovo
extends java.lang.Object
Constructor and Description |
---|
Slovo() |
Slovo(java.lang.String jmeno)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
"equals" modification to compare the words
|
int |
getId()
Gets the identifier of a word.
|
java.lang.String |
getJmeno()
Gets the word name.
|
int |
getPocet()
Gets the occurrence count of a word.
|
double |
getVaha()
Gets the weight of a word.
|
int |
hashCode()
"hashCode" modification to act as a string.
|
void |
inc()
Increments occurrence count of a word
|
void |
setId(int id)
Gets the identifier of a word.
|
void |
setJmeno(java.lang.String jmeno)
Sets the word name.
|
void |
setPocet(int pocet)
Sets the occurrence count of a word.
|
void |
setVaha(double vaha)
Sets the weight of a word.
|
public int getId()
public void setId(int id)
id
- integer value with the identifierpublic double getVaha()
public void setVaha(double vaha)
vaha
- double value with the weightpublic java.lang.String getJmeno()
public void setJmeno(java.lang.String jmeno)
jmeno
- string with a word namepublic int getPocet()
public void setPocet(int pocet)
pocet
- integer value with occurrence countpublic void inc()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- object