- All Implemented Interfaces:
Block
Block that represents a link.
-
-
Constructor Summary
Constructors
-
Method Summary
final boolean
final int
final void
-
Field Details
-
reference
private final String reference
link reference
-
content
private final Block content
link text
-
Constructor Details
-
LinkBlock
Deprecated.
Creates the LinkBlock.
- Parameters:
reference
- reference anchor
text
- text to display
-
LinkBlock
Creates the LinkBlock.
- Parameters:
reference
- reference anchor, not null.
content
- block with the displayed content, not null.
-
Method Details
-
traverse
public final void traverse(Sink sink)
Traverse the block
- Specified by:
traverse
in interface Block
- Parameters:
sink
- the sink that travers
-
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in class Object
- Returns:
- a int.