com.phasmidsoftware.util

Maybe

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
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

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

    Definition Classes
    Function0

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. def &&:(x: Option[Boolean]): Kleenean

    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

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

    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

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

    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

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

    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

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

    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

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

    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

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

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

    Definition Classes
    Any
  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def clone(): AnyRef

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

    Method to deny (invert, negate, .

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

    TEST this method

    returns

    Some(!x) if exists, else return None

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

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

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

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

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

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

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

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

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

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

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

    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.

  26. def toInt: Int

    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)

  27. def toString(): String

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

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

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

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

    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

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

    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