com.atlassian.confluence.links
Class SimpleLink

java.lang.Object
  extended by com.atlassian.confluence.links.SimpleLink

public class SimpleLink
extends Object

Represents a simple, immutable link with only text and an href.

Since:
v4.2

Constructor Summary
SimpleLink(String text, String href)
           
 
Method Summary
 boolean equals(Object o)
           
 String getHref()
           
 String getText()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleLink

public SimpleLink(String text,
                  String href)
Method Detail

getHref

public String getHref()

getText

public String getText()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003–2015 Atlassian. All rights reserved.