IncludedExcluded

This trait provides a keep function which will determine if a element T must be kept with regards to:

  • a list of include tags
  • a list of exclude tags
  • a matchFunction which say if the element matches a given tag

The element is kept if it is included and not excluded

  • it is included if the include list is empty or the element matches an including tag
  • it is excluded if the exclude list is not empty and the element matches an excluding tag
class Object
trait Matchable
class Any

Value members

Abstract methods

def exclude: Seq[String]
def include: Seq[String]
def keepFunction: (T, Seq[String]) => Boolean

Concrete methods

def contain(t: T): Boolean
def containFunction: (T, Seq[String]) => Boolean
def isExcluded(t: T): Boolean
def isExcludedTag(t: T): Boolean
def isIncluded(t: T): Boolean
def isIncludedTag(t: T): Boolean
def keep(t: T): Boolean