NumberSet

com.phasmidsoftware.number.core.numerical.NumberSet
sealed trait NumberSet

Trait to define the set in which a Number has membership. Examples of sets are Z (the integers) and R (the real numbers).

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object C
object N
object Q
object R
object Z

Members list

Value members

Abstract methods

(Internal) method to determine if x is a member of this set, and of no subsets.

(Internal) method to determine if x is a member of this set, and of no subsets.

Value parameters

x

a NumberLike object.

Attributes

Returns

true if it's a member of this set.

Concrete methods

def isMember(x: NumberLike): Boolean

The method to be used when trying to determine if x belongs to this set.

The method to be used when trying to determine if x belongs to this set.

Value parameters

x

a NumberLike object.

Attributes

Returns

true if this is exact && it's a member of all super-sets && it belongs to this set.

def isMemberOfSuperSet(x: NumberLike): Boolean

(Internal) method to determine if x is a member of all super-sets.

(Internal) method to determine if x is a member of all super-sets.

Value parameters

x

a NumberLike object.

Attributes

Returns

true if it's a member of all super-sets.

Abstract fields

val maybeSuperSet: Option[NumberSet]

The super-set of this set, if any.

The super-set of this set, if any.

Attributes