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

java.text.NumberFormat.scala Maven / Gradle / Ivy

The newest version!
package java.text

import java.util.Locale

abstract class NumberFormat protected () extends Format {
  override final def parseObject(source: String, pos: ParsePosition): AnyRef = ???

  override def format(obj: AnyRef, toAppendTo: StringBuffer, pos: FieldPosition): StringBuffer = ???

  // TODO implement
  // final def format(number: Double): String = ???
  // final def format(number: Long): String = ???
  // def format(number: Double, toAppendTo: StringBuffer, pos: FieldPosition): StringBuffer = ???
  // def format(number: Long, toAppendTo: StringBuffer, pos: FieldPosition): StringBuffer = ???
  // def parse(source: String, parsePosition: ParsePosition): Number = ???
  // def parse(source: String): Number = ???
  // def isParseIntegerOnly(): Boolean = ???
  // def setParseIntegerOnly(value: Boolean): Unit = ???
  // override def hashCode(): Int = ???
  // override def equals(obj: Any): Boolean = ???
  // override def clone(): Any = ???
  // def isGroupingUsed(): Boolean = ???
  // def setGroupingUsed(newValue: Boolean): Unit = ???
  // def getMaximumIntegerDigits(): Int = ???
  // def setMaximumIntegerDigits(newValue: Int): Unit = ???
  // def getMinimumIntegerDigits(): Int = ???
  // def setMinimumIntegerDigits(newValue: Int): Unit = ???
  // def getMaximumFractionDigits(): Int = ???
  // def setMaximumFractionDigits(newValue: Int): Unit = ???
  // def getMinimumFractionDigits(): Int = ???
  // def setMinimumFractionDigits(newValue: Int): Unit = ???
  // def getCurrency(): Currency = ???
  // def setCurrency(currency: Currency): Unit = ???
  // def getRoundingMode(): RoundingMode = ???
  // def setRoundingMode(currency: RoundingMode): Unit = ???
}

object NumberFormat {
  val INTEGER_FIELD: Int = 0
  val FRACTION_FIELD: Int = 1

  //final def getInstance(): NumberFormat = ???
  //def getInstance(inLocale: Locale): NumberFormat = ???
  //final def getNumberInstance(): NumberFormat = ???
  //def getNumberInstance(inLocale: Locale): NumberFormat = ???
  //final def getIntegerInstance(): NumberFormat = ???
  //def getIntegerInstance(inLocale: Locale): NumberFormat = ???
  //final def getCurrencyInstance(): NumberFormat = ???
  //def getCurrencyInstance(inLocale: Locale): NumberFormat = ???
  //final def getPercentInstance(): NumberFormat = ???
  //def getPercentInstance(inLocale: Locale): NumberFormat = ???
  //def getAvailableLocales(): Array[Locale] = ???
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy