@ThreadSafe public class Reference extends Object implements Serializable, Comparable<Reference>
| Constructor and Description |
|---|
Reference()
Creates a new reference.
|
Reference(String name,
String source,
String url)
Creates a new reference.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(@NotNull Reference o)
Implementation of the comparable interface.
|
boolean |
equals(Object obj) |
String |
getName()
Get the value of name.
|
String |
getSource()
Get the value of source.
|
String |
getUrl()
Get the value of url.
|
int |
hashCode() |
void |
setName(String name)
Set the value of name.
|
void |
setSource(String source)
Set the value of source.
|
void |
setUrl(String url)
Set the value of url.
|
String |
toString() |
public String getName()
public void setName(String name)
name - new value of namepublic String getUrl()
public void setUrl(String url)
url - new value of urlpublic String getSource()
public void setSource(String source)
source - new value of sourcepublic int compareTo(@NotNull
@NotNull Reference o)
compareTo in interface Comparable<Reference>o - the Reference being comparedCopyright © 2012–2020 OWASP. All rights reserved.