public final class Round extends NamedObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DESCRIPTION_CLASS_NAME
Class name of the HTML description node.
|
private java.lang.String |
parent
Name of the parent contest.
|
private static long |
serialVersionUID
Serialization index.
|
private java.lang.String |
url
URL of this round dashboard.
|
Modifier | Constructor and Description |
---|---|
private |
Round(java.lang.String parent,
java.lang.String name,
java.lang.String url)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContestName()
Getter for the parent contest name.
|
private static java.util.Optional<Round> |
getRound(java.lang.String parent,
org.jsoup.nodes.Element round)
Static factory method that builds a
Round instance
from the given HTML element. |
static java.util.List<Round> |
getRounds(java.lang.String parent,
org.jsoup.nodes.Element contest)
Static factory methods that retrieves a list of round
from the given JSoup contest node.
|
java.lang.String |
getURL()
Getter for round dashboard URL.
|
getName, getName
private static final long serialVersionUID
public static final java.lang.String DESCRIPTION_CLASS_NAME
private final java.lang.String parent
private final java.lang.String url
private Round(java.lang.String parent, java.lang.String name, java.lang.String url)
parent
- Name of the parent contest of this round.name
- Name of this round.url
- URL of this round dashboard.public java.lang.String getContestName()
public java.lang.String getURL()
private static java.util.Optional<Round> getRound(java.lang.String parent, org.jsoup.nodes.Element round)
Round
instance
from the given HTML element.round
- Element that contains our round description.Round
instance.public static java.util.List<Round> getRounds(java.lang.String parent, org.jsoup.nodes.Element contest)
contest
- Root element of the contest in the contest index page.