@Test public void testAccept_NoFilterExpression() throws Exception { RemoteBlobFilterWrapper wrapper = new RemoteBlobFilterWrapper(); RemoteBlob blob = new RemoteBlob.Builder().setBucket("bucket").setName("blob1") .setLastModified(new Date().getTime()).setSize(0).build(); RemoteBlob blob2 = new RemoteBlob.Builder().setBucket("bucket").setName("blob2") .setLastModified(new Date().getTime()).setSize(0).build(); assertTrue(wrapper.accept(blob)); assertTrue(wrapper.accept(blob2)); }
@Override public boolean accept(RemoteBlob blob) { if (fileFilter == null) { fileFilter = FileFilterBuilder.build(getFilterExpression(), getFileFilterImp()); } return fileFilter.accept(blob.toFile()); }
RemoteBlobFilterWrapper implements RemoteBlobFilter { @Override public boolean accept(RemoteBlob blob) { if (fileFilter == null) { fileFilter = FileFilterBuilder.build(getFilterExpression(), getFileFilterImp()); } return fileFilter.accept(blob.toFile()); } }
RemoteBlobFilterWrapper implements RemoteBlobFilter { @Override public boolean accept(RemoteBlob blob) { if (fileFilter == null) { fileFilter = FileFilterBuilder.build(getFilterExpression(), getFileFilterImp()); } return fileFilter.accept(blob.toFile()); }  }
RemoteBlobFilterWrapper implements RemoteBlobFilter { @Override public boolean accept(RemoteBlob blob) { if (fileFilter == null) { fileFilter = FileFilterBuilder.build(getFilterExpression(), getFileFilterImp()); } return fileFilter.accept(blob.toFile()); }  @Override boolean accept(RemoteBlob blob); String getFileFilterImp(); void setFileFilterImp(String fileFilterImp); RemoteBlobFilterWrapper withFilterImp(String s); String getFilterExpression(); void setFilterExpression(String filterExpression); RemoteBlobFilterWrapper withFilterExpression(String expression); }
RemoteBlobFilterWrapper implements RemoteBlobFilter { @Override public boolean accept(RemoteBlob blob) { if (fileFilter == null) { fileFilter = FileFilterBuilder.build(getFilterExpression(), getFileFilterImp()); } return fileFilter.accept(blob.toFile()); }  @Override boolean accept(RemoteBlob blob); String getFileFilterImp(); void setFileFilterImp(String fileFilterImp); RemoteBlobFilterWrapper withFilterImp(String s); String getFilterExpression(); void setFilterExpression(String filterExpression); RemoteBlobFilterWrapper withFilterExpression(String expression);  }