anthill.types
Interface HashedKeyword
- All Superinterfaces:
- Closeness, Comparable
- All Known Implementing Classes:
- SHAHashedKeyword, SimpleHashedKeyword
- public interface HashedKeyword
- extends Comparable, Closeness
This interface represents an hashed keyword, used in ant algorithms based
on hash routing. An hashed keyword contains two values, the keyword
maintained as a plain-text string, and the hash value maintained as
an array of bytes.
- Version:
- $Revision: 1.2 $
- Author:
- Alberto Montresor (montresor@cs.unibo.it)
Method Summary |
byte[] |
getBytes()
Returns the bytes representing the hashed value of the keyword. |
String |
getKeyword()
Returns the keyword associated with this hashed keyword. |
void |
init(String keyword)
Initializes the hashed keyword by setting the keyword contained in it. |
NAME
public static final String NAME
- See Also:
- Constant Field Values
init
public void init(String keyword)
- Initializes the hashed keyword by setting the keyword contained in it.
getKeyword
public String getKeyword()
- Returns the keyword associated with this hashed keyword.
getBytes
public byte[] getBytes()
- Returns the bytes representing the hashed value of the keyword.