- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {LocalDateTime l =
new LocalDateTime()
LocalDateTime.now()
DateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
- Smart code suggestions by Codota
}
public static synchronized SubjectivityLexicon getInstance() { if (instance == null) { final String location = Objects.firstNonNull( Environment.getProperty("subjectivity.lexicon.home"), "SubjectivityLexicon.tsv"); try { instance = Lexicon.readFrom(SubjectivityLexicon.class, Lexeme.class, location); } catch (final Throwable ex) { throw new Error("Could not read default subjectivity lexicon at " + location, ex); } } return instance; }
public static synchronized Intensities getInstance() { if (instance == null) { final String location = Objects.firstNonNull( Environment.getProperty("intensities.home"), "intensities.tsv"); try { instance = Lexicon.readFrom(Intensities.class, Lexeme.class, location); } catch (final Throwable ex) { throw new Error("Could not read default intensity lexicon at " + location, ex); } } return instance; }
public static synchronized SenticNet getInstance() { if (instance == null) { final String location = Objects.firstNonNull( Environment.getProperty("senticnet.home"), "SenticNet.tsv"); try { instance = Lexicon.readFrom(SenticNet.class, Lexeme.class, location); } catch (final Throwable ex) { throw new Error("Could not read default subjectivity lexicon at " + location, ex); } } return instance; }
final String rulesetNames = options.getOptionArg("r", String.class); for (final String rulesetName : rulesetNames.split(",")) { String location = Environment.getProperty("rdfpro.rules." + rulesetName); location = location != null ? location : rulesetName; rulesetURLs.add(IO.extractURL(location).toString());