K
KevinSimonson
I'm taking a look at a piece of Java code right now that says,
/**
* @return number of times the torrent has been downloaded.
*/
public long getDownloaded() {
return downloaded;
}
@Override
public String toString() {
return StringUtils.toString(this);
}
This looks really wierd to me. Obviously it's inside a class
declaration, that I've edited out. But can this compile? Is it
really legal to have "@Override" there before the declaration of
<toString()>, like it's some form of a comment or something? Does
anybody know what the function of this at sign is there?
Kevin Simonson
/**
* @return number of times the torrent has been downloaded.
*/
public long getDownloaded() {
return downloaded;
}
@Override
public String toString() {
return StringUtils.toString(this);
}
This looks really wierd to me. Obviously it's inside a class
declaration, that I've edited out. But can this compile? Is it
really legal to have "@Override" there before the declaration of
<toString()>, like it's some form of a comment or something? Does
anybody know what the function of this at sign is there?
Kevin Simonson