Constant

case class Constant(result: Boolean) extends Filter

Filter that always returns the same result, regardless of the pattern

trait Serializable
trait Product
trait Equals
trait Filter
class Object
trait Matchable
class Any

Value members

Concrete methods

override def accept(value: String): Boolean

Returns true if the provided test string satisfies at least one of the includes patterns and none of the excludes patterns in the filter.

Returns true if the provided test string satisfies at least one of the includes patterns and none of the excludes patterns in the filter.

Definition Classes
override def excludes(value: String): Boolean

Returns whether the provided test string satisfies any of the filter's excludes patterns.

Returns whether the provided test string satisfies any of the filter's excludes patterns.

Definition Classes
override def includes(value: String): Boolean

Returns whether the provided test string satisfies any of the filter's includes patterns.

Returns whether the provided test string satisfies any of the filter's includes patterns.

Definition Classes

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product