com.stripe.brushfire

Predicate

sealed abstract class Predicate[V] extends Product with Serializable

A Predicate is a function which accepts or rejects feature values.

Given a value of type V, apply() will return a Boolean indicating whether the predicate matches or not.

There are six types of predicates:

Predicates can be negated using !, and can be transformed using map. Evaluating a predicate requires an Ordering, but this constraint is not enforced during construction, only when apply() is invoked.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Predicate
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Predicate()

Abstract Value Members

  1. abstract def canEqual(that: Any): Boolean

    Definition Classes
    Equals
  2. abstract def productArity: Int

    Definition Classes
    Product
  3. abstract def productElement(n: Int): Any

    Definition Classes
    Product
  4. abstract def value: V

    Returns the right-hand side of the predicate's comparison.

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def apply(v: V)(implicit ord: Ordering[V]): Boolean

    Evaluate this predicate for the feature value v.

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def display(name: String): String

    Display this predicate, using the given feature name as a placeholder.

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def map[U](f: (V) ⇒ U): Predicate[U]

    Map the value types of this Predicate using f.

    Map the value types of this Predicate using f.

    Remember that in order to evaluate a Predicate[U] you will need to be able to provide a valid Ordering[U] instance.

  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. def productIterator: Iterator[Any]

    Definition Classes
    Product
  21. def productPrefix: String

    Definition Classes
    Product
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

    Display this predicate as a string.

    Display this predicate as a string.

    Definition Classes
    Predicate → AnyRef → Any
  24. def unary_!(): Predicate[V]

    Negate this predicate.

    Negate this predicate.

    The resulting predicate will return true in cases where this predicate returns false.

  25. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped