public class AttachmentTextExtractionFunction extends Object implements BiFunction<Long,Integer,AttachmentTextExtraction>
Constructor and Description |
---|
AttachmentTextExtractionFunction(AttachmentDao attachmentDao,
AttachmentExtractedTextManager attachmentExtractedTextManager,
DelegatingAttachmentTextExtractor delegatingAttachmentTextExtractor,
Supplier<Boolean> shouldCompressTextExtraction) |
Modifier and Type | Method and Description |
---|---|
AttachmentTextExtraction |
apply(Long attachmentId,
Integer version)
Returns empty
AttachmentTextExtraction if an attachment has been removed or has been updated into
a new version. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen
public AttachmentTextExtractionFunction(AttachmentDao attachmentDao, AttachmentExtractedTextManager attachmentExtractedTextManager, DelegatingAttachmentTextExtractor delegatingAttachmentTextExtractor, Supplier<Boolean> shouldCompressTextExtraction)
public AttachmentTextExtraction apply(Long attachmentId, Integer version)
AttachmentTextExtraction
if an attachment has been removed or has been updated into
a new version. Otherwise returns result of attachment text extraction.apply
in interface BiFunction<Long,Integer,AttachmentTextExtraction>
Copyright © 2003–2020 Atlassian. All rights reserved.