- 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 public UUID apply(final HasFeaturedImage entity) { return entity.getFeaturedImageId(); } };
public boolean apply(@Nullable Attachment attachment) { return attachment.getId().equals(entity.getFeaturedImageId()); } };
public UUID apply(EntityData<E> input) { if (!HasFeaturedImage.class.isAssignableFrom(input.getEntity().getClass())) { throw new RuntimeException( "Failed to load attachment list with featured image only option : entity does not implement HasFeaturedImage"); } return ((HasFeaturedImage) input.getEntity()).getFeaturedImageId(); } }).filter(Predicates.notNull()).toList();
if (hasFeaturedImage.getFeaturedImageId() != null) { Attachment attachment = attachmentStore.findAndLoadById(hasFeaturedImage.getFeaturedImageId()); if (attachment != null) { Map<String, Object> imageMap = Maps.newHashMap();