- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {BufferedReader b =
InputStream in;new BufferedReader(new InputStreamReader(in))
Reader in;new BufferedReader(in)
File file;new BufferedReader(new FileReader(file))
- Smart code suggestions by Codota
}
@Override @Nonnull public As unmarshal (final @Nonnull List<Statement> statements, final @Nonnull Context context) { // TODO: what about retrieving the observationSet and calling findOrCreate(?) final List<Object> capabilities = new ArrayList<Object>(); capabilities.add(new DefaultIdentifiable(Converter.valueToId(statements.get(0).getSubject()))); try { final String displayName = findStatementWithPredicate(statements, ObservationVocabulary.RDFS_LABEL).getObject().stringValue(); capabilities.add(new DefaultDisplayable(displayName, "SimpleObservable")); } catch (NotFoundException e) { // ok. no Displayable } return new SimpleObservable(capabilities.toArray()); } }
/******************************************************************************************************************* * * ******************************************************************************************************************/ @Override @Nonnull protected Lookup createLookup() { return new ProxyLookup(Lookups.singleton(taxon), super.createLookup()); }
new Type(ObservationVocabulary.FOAF_ORGANIZATION), new Property<String>(ObservationVocabulary.FOAF_HOME_PAGE, "http://www.xeno-canto.org")); final Observable species = new SimpleObservable(new DefaultIdentifiable(taxonId), new DefaultDisplayable(displayName, ""));