DocumentFilter
interface DocumentFilter
This is a filter to remove content that shouldn't be save in a database or should not be sent to an API in order to save as minimum information as possible. Empty space, for example, should be removed from the document, as they don't carry any information.
Inheritors
Functions
Link copied to clipboard
abstract fun removeTypesFromDocument(documentContent: DocumentContent, removeTypes: Set<Int> = removeTypesFromDocument()): DocumentContent
Removes the selected types from the document passed.