BoundaryBehavior

com.phasmidsoftware.number.core.inner.BoundaryBehavior
See theBoundaryBehavior companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

Provides boundary behavior for the Int type when normalizing to a range. Specifically, this instance models non-circular, number-like behavior:

Provides boundary behavior for the Int type when normalizing to a range. Specifically, this instance models non-circular, number-like behavior:

  • preferMax is set to false, indicating that the minimum boundary is preferred when a value lands exactly on a boundary due to wrapping.
  • circularEquivalent is set to false, indicating that the minimum and maximum boundaries are distinct and do not represent the same value.

Attributes

Supertypes
trait BoundaryBehavior[Int]
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def angle[X]: BoundaryBehavior[X]

Angle behavior: prefer max, circular equivalent.

Angle behavior: prefer max, circular equivalent.

Attributes

def apply[X](prefersMax: Boolean, isCircular: Boolean): BoundaryBehavior[X]

Create a boundary behavior with specified properties.

Create a boundary behavior with specified properties.

Attributes

Standard number behavior: prefer min, non-circular.

Standard number behavior: prefer min, non-circular.

Attributes

Givens

Givens

Provides boundary behavior for the Int type when normalizing to a range. Specifically, this instance models non-circular, number-like behavior:

Provides boundary behavior for the Int type when normalizing to a range. Specifically, this instance models non-circular, number-like behavior:

  • preferMax is set to false, indicating that the minimum boundary is preferred when a value lands exactly on a boundary due to wrapping.
  • circularEquivalent is set to false, indicating that the minimum and maximum boundaries are distinct and do not represent the same value.

Attributes