object Helpers
Various helper functions used in the rest of the code.
- Alphabetic
- By Inheritance
- Helpers
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- implicit final class AnyOps[A] extends AnyRef
- Annotations
- @SuppressWarnings()
- implicit final class AnyOptionOps[A] extends AnyRef
- Annotations
- @SuppressWarnings()
- implicit final class BigDecimalOps extends AnyRef
- Annotations
- @SuppressWarnings()
- implicit final class BigIntOps extends AnyRef
- Annotations
- @SuppressWarnings()
- implicit final class BooleanOps extends AnyRef
- Annotations
- @SuppressWarnings()
- implicit final class StringOps extends AnyRef
- Annotations
- @SuppressWarnings()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val MaxExpandRounds: Int
The maximum number of rounds to consider during schema expansion.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def contractInt(current: Int, limit: Int, exclusive: Boolean, force: Boolean, round: Int): (Option[Int], Boolean)
Contracts an integer used for a maxium value to meet a given limit.
Contracts an integer used for a maxium value to meet a given limit.
- current
the current maximum value
- limit
the limit from the other schema
- exclusive
whether the current limit is exclusive or not
- round
the current round of expansion
- returns
the new maximum value and whether it is exclusive
- Annotations
- @SuppressWarnings()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def expandInt(current: BigInt, limit: BigInt, exclusive: Boolean, force: Boolean = false, round: Int): (Option[BigInt], Boolean)
Expands an integer used for a minimum value to meet a given limit.
Expands an integer used for a minimum value to meet a given limit.
- current
the current minimum value
- limit
the limit from the other schema
- exclusive
whether the current limit is exclusive or not
- round
the current round of expansion
- returns
the new minimum value and whether it is exclusive
- def factorize(x: Int): List[Int]
Produce a list of all prime factors of an integer.
Produce a list of all prime factors of an integer.
- Annotations
- @SuppressWarnings()
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def findCommonPrefix(str1: Option[String], str2: Option[String]): Option[String]
- def findCommonPrefix(str1: String, str2: String): String
Find a possible common prefix of two strings.
Find a possible common prefix of two strings.
- Annotations
- @SuppressWarnings()
- def gcd(a: BigDecimal, b: BigDecimal): BigDecimal
Find the greatest common divisor of two decimals.
Find the greatest common divisor of two decimals.
- Annotations
- @tailrec() @SuppressWarnings()
- def gcd(a: BigInt, b: BigInt): BigInt
Find the greatest common divisor of two integers.
Find the greatest common divisor of two integers.
- Annotations
- @tailrec() @SuppressWarnings()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def intersectOrNone[A](first: Option[Set[A]], second: Option[Set[A]]): Option[Set[A]]
Find the intersection of two optional sets or None if neither set is specified.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isMaxCoveredBy[A](value1: Option[A], exclusive1: Boolean, value2: Option[A], exclusive2: Boolean)(implicit arg0: Order[A]): Boolean
Determine if one maximum value covers the values of another, considering whether each maximum is exclusive or not.
Determine if one maximum value covers the values of another, considering whether each maximum is exclusive or not.
- value1
the first maximum value
- exclusive1
whether the first maximum value is exclusive
- value2
the second maximum value
- exclusive2
whether the second maximum value is exclusive
- returns
true if the second value covers the first, false otherwise
- Annotations
- @SuppressWarnings()
- def isMinCoveredBy[A](value1: Option[A], exclusive1: Boolean, value2: Option[A], exclusive2: Boolean)(implicit arg0: Order[A]): Boolean
Determine if one minimum values the values of another, considering whether each minimum is exclusive or not.
Determine if one minimum values the values of another, considering whether each minimum is exclusive or not.
- value1
the first minimum value
- exclusive1
whether the first minimum value is exclusive
- value2
the second minimum value
- exclusive2
whether the second minimum value is exclusive
- returns
true if the second value covers the first, false otherwise
- Annotations
- @SuppressWarnings()
- def lcm(a: BigDecimal, b: BigDecimal): BigDecimal
Find the lowest common mu,tiple of two decimals.
- def lcm(a: BigInt, b: BigInt): BigInt
Find the lowest common mu,tiple of two integers.
- def maxOrNone[A](first: Option[A], second: Option[A])(implicit arg0: Order[A]): Option[A]
Find the maximum of two values or None if neither is specified.
- def maybeContractInt(current: Option[Int], limit: Option[Int], exclusive: Boolean, force: Boolean = false, round: Int = 1): (Option[Int], Boolean)
A wrapper for contractInt that works with scala.Option values.
A wrapper for contractInt that works with scala.Option values.
- Annotations
- @SuppressWarnings()
- def maybeExpandInt(current: Option[BigInt], limit: Option[BigInt], exclusive: Boolean, force: Boolean = false, round: Int = 1): (Option[BigInt], Boolean)
A wrapper for expandInt that works with scala.Option values.
A wrapper for expandInt that works with scala.Option values.
- Annotations
- @SuppressWarnings()
- def minOrNone[A](first: Option[A], second: Option[A])(implicit arg0: Order[A]): Option[A]
Find the minimum of two values or None if neither is specified.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def pathToInexactPointer(path: String): JsonPointer
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unionOrNone[A](first: Option[Set[A]], second: Option[Set[A]]): Option[Set[A]]
Find the union of two optional sets or None if neither set is specified.
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()