Skip to content

Instantly share code, notes, and snippets.

@chimerast
Last active August 29, 2015 14:01
Show Gist options
  • Save chimerast/1b4e7ca1d24981805ebc to your computer and use it in GitHub Desktop.
Save chimerast/1b4e7ca1d24981805ebc to your computer and use it in GitHub Desktop.
本日の糞コード 2014/04/24
private boolean hasNetIncome(FactTable factTable, QName qName, final String context) {
return option(factTable, NetIncome, qName, context).map(e -> true)
.orElseGet(() -> option(factTable, NetIncomeUS, qName, context).map(e -> true)
.orElseGet(() -> option(factTable, ProfitAttributableToOwnersOfParentIFRS, qName, context).map(e -> true)
.orElseGet(() -> option(factTable,BasicEarningsPerShareIFRS, qName, context).isPresent())));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment