private OffsetDateTime getDataDistribuicao() {
return Optional.ofNullable(this.getPaginaInfoGerais())
.map(page -> page.<HtmlTableCell>getFirstByXPath(XPATH_CEL_DATA_DISTRIBUICAO))
.map(HtmlTableCell::getTextContent)
.map(str -> replaceAndTrim(str))
.map(str -> getDataDistribuicao(str))
.map(str -> LocalDateTime.parse( str, DateTimeFormatter.ofPattern(PATTERN_DATA_HORA)))
.map(LocalDateTime::atOffset(ZoneOffset.UTC));
}
At last map
I get the error:
static method can not be referenced from a static context
What to do?