Class/Object

com.stripe.brushfire

Predicate

Related Docs: object Predicate | package brushfire

Permalink

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
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
Visibility
  1. Public
  2. All

Abstract Value Members

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

    Permalink
    Definition Classes
    Equals
  2. abstract def productArity: Int

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

    Permalink
    Definition Classes
    Product
  4. abstract def value: V

    Permalink

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

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(v: V)(implicit ord: Ordering[V]): Boolean

    Permalink

    Evaluate this predicate for the feature value v.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

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

    Permalink

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

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

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

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

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

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

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

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

    Permalink

    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.

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

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. def productIterator: Iterator[Any]

    Permalink
    Definition Classes
    Product
  19. def productPrefix: String

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

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink

    Display this predicate as a string.

    Display this predicate as a string.

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

    Permalink

    Negate this predicate.

    Negate this predicate.

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

  23. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped