Trait/Object

com.phasmidsoftware.util

Maybe

Related Docs: object Maybe | package util

Permalink

trait Maybe extends () ⇒ Option[Boolean]

This trait is to support Kleenean algebra, potentially in a disjunctive or conjunctive expression. The truth-tables for Kleenean logic can be found here: See https://en.wikipedia.org/wiki/Three-valued_logic#Logics Or you can look at KleeneanSpec to see what the rules are.

The original source and specification for Kleenean is in the LaScala project on github at https://github.com/rchillyard/LaScala

Linear Supertypes
() ⇒ Option[Boolean], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Maybe
  2. Function0
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def apply(): Option[Boolean]

    Permalink
    Definition Classes
    Function0

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def &&:(x: Option[Boolean]): Kleenean

    Permalink

    Right-associative conjunctive operator with an Option[Boolean]

    Right-associative conjunctive operator with an Option[Boolean]

    x

    other Maybe value

    returns

    a Maybe value with is the Kleenean logical AND of this and x

  4. def &:(b: Boolean): Kleenean

    Permalink

    Right-associative conjunctive operator with a Boolean

    Right-associative conjunctive operator with a Boolean

    b

    other Maybe value

    returns

    a Maybe value with is the Kleenean logical AND of this and b

  5. def :&(b: Boolean): Kleenean

    Permalink

    Left-associative conjunctive operator with a Boolean

    Left-associative conjunctive operator with a Boolean

    b

    other Boolean value

    returns

    a Maybe value with is the Kleenean logical AND of this and b

  6. def :&&(m: ⇒ Maybe): Kleenean

    Permalink

    Left-associative conjunctive operator with another Maybe

    Left-associative conjunctive operator with another Maybe

    m

    other Maybe value

    returns

    a Maybe value with is the Kleenean logical AND of this and m

  7. def :|(b: Boolean): Kleenean

    Permalink

    Left-associative disjunctive operator with a Boolean

    Left-associative disjunctive operator with a Boolean

    b

    other Maybe value

    returns

    a Maybe value with is the Kleenean logical OR of this and b

  8. def :||(m: ⇒ Maybe): Kleenean

    Permalink

    Left-associative disjunctive operator with another Maybe

    Left-associative disjunctive operator with another Maybe

    m

    other Maybe value

    returns

    a Maybe value with is the Kleenean logical OR of this and m

  9. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def deny: Kleenean

    Permalink

    Method to deny (invert, negate, ...) this Maybe

    Method to deny (invert, negate, ...) this Maybe

    TEST this method

    returns

    Some(!x) if exists, else return None

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  23. def toBoolean(default: ⇒ Boolean): Boolean

    Permalink

    Method to convert this Maybe into a Boolean

    Method to convert this Maybe into a Boolean

    default

    the value to use if this is None

    returns

    a Boolean corresponding to either the existing Boolean or else the given default.

  24. def toInt: Int

    Permalink

    Method to convert this Maybe into an integer corresponding to the return value of compareTo

    Method to convert this Maybe into an integer corresponding to the return value of compareTo

    TEST this method

    returns

    either 1 (true), 0 (maybe), or -1 (false)

  25. def toString(): String

    Permalink
    Definition Classes
    Maybe → Function0 → AnyRef → Any
  26. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. def |:(b: Boolean): Kleenean

    Permalink

    Right-associative disjunctive operator with a Boolean

    Right-associative disjunctive operator with a Boolean

    b

    other Maybe value

    returns

    a Maybe value with is the Kleenean logical OR of this and b

  30. def ||:(x: Option[Boolean]): Kleenean

    Permalink

    Right-associative disjunctive operator with an Option[Boolean]

    Right-associative disjunctive operator with an Option[Boolean]

    x

    other Maybe value

    returns

    a Maybe value with is the Kleenean logical OR of this and x

Inherited from () ⇒ Option[Boolean]

Inherited from AnyRef

Inherited from Any

Ungrouped