public class Url extends Object
Constructor and Description |
---|
Url() |
Url(EnumWithCustomOfUrlCategory category,
Boolean preferred,
String href)
Initializes a new instance of the Url
|
Modifier and Type | Method and Description |
---|---|
Url |
category(EnumWithCustomOfUrlCategory category)
Set category and return this.
|
boolean |
equals(Object o) |
EnumWithCustomOfUrlCategory |
getCategory()
Url category.
|
String |
getHref()
URL.
|
int |
hashCode() |
Url |
href(String href)
Set href and return this.
|
Boolean |
isPreferred()
Defines whether url is preferred.
|
Url |
preferred(Boolean preferred)
Set preferred and return this.
|
void |
setCategory(EnumWithCustomOfUrlCategory category)
Set category.
|
void |
setHref(String href)
Set href.
|
void |
setPreferred(Boolean preferred)
Set preferred.
|
String |
toString() |
public Url()
public Url(EnumWithCustomOfUrlCategory category, Boolean preferred, String href)
category
- Url category.preferred
- Defines whether url is preferred.href
- URL.public Url category(EnumWithCustomOfUrlCategory category)
category
- Url category.public EnumWithCustomOfUrlCategory getCategory()
public void setCategory(EnumWithCustomOfUrlCategory category)
category
- Url category.public Url preferred(Boolean preferred)
preferred
- Defines whether url is preferred.public Boolean isPreferred()
public void setPreferred(Boolean preferred)
preferred
- Defines whether url is preferred.public String getHref()
public void setHref(String href)
href
- URL.Copyright © 2020. All rights reserved.