All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.reikje.specifiers.UnsignedHexadecimalInteger.scala Maven / Gradle / Ivy

The newest version!
package com.github.reikje.specifiers

import java.math.BigInteger

/**
  * Adds support for '''%x''' specifiers.
  *
  * @author rschatz
  */
object UnsignedHexadecimalInteger extends UnsignedNumericConversion {
  override protected val complement: BigInteger = BigInteger.ONE.shiftLeft(32)

  /**
    * Returns '''%x'''.
    *
    * @return String
    */
  override val specifier: String = "%x"

  override protected def asString(value: BigInteger): String = value.toString(16)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy