@Test public void malformedEntitiesAreSkipped() { assertThat(underTest.transform(Arrays.asList(badRecord, goodRecord)), contains(goodEntity)); }
public Iterable<T> transform(final Iterable<ODocument> documents) { return Iterables.filter(Iterables.transform(documents, this::transformEntity), Objects::nonNull); }
IterableEntityAdapter extends EntityAdapter<T> { public Iterable<T> transform(final Iterable<ODocument> documents) { return Iterables.filter(Iterables.transform(documents, this::transformEntity), Objects::nonNull); } }
IterableEntityAdapter extends EntityAdapter<T> { public Iterable<T> transform(final Iterable<ODocument> documents) { return Iterables.filter(Iterables.transform(documents, this::transformEntity), Objects::nonNull); } IterableEntityAdapter(final String typeName); }
IterableEntityAdapter extends EntityAdapter<T> { public Iterable<T> transform(final Iterable<ODocument> documents) { return Iterables.filter(Iterables.transform(documents, this::transformEntity), Objects::nonNull); } IterableEntityAdapter(final String typeName); Iterable<T> transform(final Iterable<ODocument> documents); @Nullable T read(final ODatabaseDocumentTx db, final EntityId id); Iterable<T> browse(final ODatabaseDocumentTx db); long count(final ODatabaseDocumentTx db); int countI(final ODatabaseDocumentTx db); }
IterableEntityAdapter extends EntityAdapter<T> { public Iterable<T> transform(final Iterable<ODocument> documents) { return Iterables.filter(Iterables.transform(documents, this::transformEntity), Objects::nonNull); } IterableEntityAdapter(final String typeName); Iterable<T> transform(final Iterable<ODocument> documents); @Nullable T read(final ODatabaseDocumentTx db, final EntityId id); Iterable<T> browse(final ODatabaseDocumentTx db); long count(final ODatabaseDocumentTx db); int countI(final ODatabaseDocumentTx db);  }