Int

zio.blocks.schema.PrimitiveValue.Int
case class Int(value: Int) extends PrimitiveValue

An Int value. It is compared by subtracting the two values, which overflows: Int(Int.MaxValue) > Int(-1) is false.

Attributes

Source
PrimitiveValue.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Types

type Type = Int

The Scala or Java type of the value.

The Scala or Java type of the value.

Attributes

Source
PrimitiveValue.scala

Value members

Concrete methods

def compare(that: PrimitiveValue): Int

Compares by subtracting the two values, which overflows: Int(Int.MaxValue) compared with Int(-1) is negative. A value of another case is compared by typeIndex.

Compares by subtracting the two values, which overflows: Int(Int.MaxValue) compared with Int(-1) is negative. A value of another case is compared by typeIndex.

Attributes

Source
PrimitiveValue.scala

Returns the PrimitiveType of the value, without validation.

Returns the PrimitiveType of the value, without validation.

Attributes

Source
PrimitiveValue.scala
def typeIndex: Int

Returns the position of this case in the list of cases, from 0 for Unit to 29 for UUID. Values of different cases are ordered by it.

Returns the position of this case in the list of cases, from 0 for Unit to 29 for UUID. Values of different cases are ordered by it.

Attributes

Source
PrimitiveValue.scala

Inherited methods

final def <(that: PrimitiveValue): Boolean

Returns true when this value is less than that by compare.

Returns true when this value is less than that by compare.

Attributes

Inherited from:
PrimitiveValue
Source
PrimitiveValue.scala
final def <=(that: PrimitiveValue): Boolean

Returns true when this value is less than or equal to that by compare.

Returns true when this value is less than or equal to that by compare.

Attributes

Inherited from:
PrimitiveValue
Source
PrimitiveValue.scala
final def >(that: PrimitiveValue): Boolean

Returns true when this value is greater than that by compare.

Returns true when this value is greater than that by compare.

Attributes

Inherited from:
PrimitiveValue
Source
PrimitiveValue.scala
final def >=(that: PrimitiveValue): Boolean

Returns true when this value is greater than or equal to that by compare.

Returns true when this value is greater than or equal to that by compare.

Attributes

Inherited from:
PrimitiveValue
Source
PrimitiveValue.scala
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
Source
Product.scala
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
Source
Product.scala