AnyContext

com.phasmidsoftware.number.core.inner.AnyContext
case object AnyContext extends CoreContext

The AnyContext object represents a special Context that qualifies all factors without exception.

This context essentially overrides all filtering or conditional logic by always returning true for any given factor. It is useful as a catch-all context where no restrictions are applied.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait CoreContext
class Object
trait Matchable
class Any
Show all
Self type
AnyContext.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

def factorQualifies(f: Factor): Boolean

Determines whether the given factor qualifies for this AnyContext.

Determines whether the given factor qualifies for this AnyContext.

Value parameters

f

the factor to be evaluated for qualification (ignored).

Attributes

Returns

true.

Inherited methods

Produces a new context that requires both this context and the provided context to qualify a factor. The resulting context effectively applies a logical AND operation between this context and the given context.

Produces a new context that requires both this context and the provided context to qualify a factor. The resulting context effectively applies a logical AND operation between this context and the given context.

Value parameters

that

the second context that will be combined with this context using a logical AND operation.

Attributes

Returns

a new Context that qualifies a factor only if it qualifies in both this context and the given context.

Inherited from:
CoreContext
def fieldQualifies(f: Field): Boolean

Checks if the given Field qualifies based on its associated factor, if any.

Checks if the given Field qualifies based on its associated factor, if any.

CONSIDER moving Field into inner package.

Value parameters

f

the field to evaluate.

Attributes

Returns

true if the field's associated factor qualifies, or if no factor is associated; false otherwise.

Inherited from:
CoreContext
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

Negates the qualification of a factor in the current context.

Negates the qualification of a factor in the current context.

Attributes

Returns

A new context that inverts the qualification logic for factors.

Inherited from:
CoreContext
def or(that: CoreContext): CoreContext

Combines this Context with another Context using a logical OR operation. The resulting Context qualifies a factor if it qualifies in either the current Context or the provided Context.

Combines this Context with another Context using a logical OR operation. The resulting Context qualifies a factor if it qualifies in either the current Context or the provided Context.

Value parameters

that

the other Context to combine with this Context.

Attributes

Returns

a new Context that represents the logical OR of the two contexts.

Inherited from:
CoreContext
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
def qualifyingField(fo: Option[Field]): Option[Field]

Determines whether a given optional field qualifies based on its associated factor.

Determines whether a given optional field qualifies based on its associated factor.

This method evaluates an optional Field to determine if it can be considered a qualifying field within the given context. The Field must have an associated factor, and that factor must qualify based on the fieldQualifies logic.

Value parameters

fo

an optional Field to be evaluated.

Attributes

Returns

an optional Field if it qualifies; otherwise, None.

Inherited from:
CoreContext

Concrete fields

lazy override val toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.