QueryOperationIsInfinite

com.phasmidsoftware.number.core.inner.QueryOperationIsInfinite
case object QueryOperationIsInfinite extends QueryOperation[Boolean]

A query operation that determines whether a given value is infinite. This object extends QueryOperation[Boolean] and provides a set of query functions, implemented in BooleanQueryFunctions, to handle Int, Rational, and Double input types.

Specifically:

  • For Int inputs, this operation always returns false since integers cannot be infinite.
  • For Rational inputs, it checks whether the rational number represents infinity.
  • For Double inputs, it checks for positive or negative infinity.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait QueryOperation[Boolean]
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Inherited types

type MirroredElemLabels = EmptyTuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Singleton
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton
type MirroredMonoType = this.type

The mirrored *-type.

The mirrored *-type.

Attributes

Inherited from:
Singleton
type MirroredType = this.type

Attributes

Inherited from:
Singleton

Inherited and Abstract types

type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

Retrieves a set of query functions that operate on Int, Rational, and Double inputs to produce a Boolean result, encapsulated in BooleanQueryFunctions.

Retrieves a set of query functions that operate on Int, Rational, and Double inputs to produce a Boolean result, encapsulated in BooleanQueryFunctions.

Attributes

Returns

a BooleanQueryFunctions object containing the functions: - fInt: Always returns false for Int inputs, as integers cannot be infinite. - fRat: Checks whether a Rational input represents infinity. - fDouble: Checks if a Double input is positive or negative infinity.

Inherited methods

def fromProduct(p: Product): MirroredMonoType

Creates a new instance of type T with elements taken from product p.

Creates a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product