object StrO extends Error
The StrO
object is used to represent and operate on string numbers.
It contains an implicit class definition for StrNum
, which extends
strings with Numeric
operations, it it can be used in VectorS
.
The semantics of StrNum
operators are similar those in Pike.
- See also
http://docs.roxen.com/pike/7.0/tutorial/strings/operators.xml
- Alphabetic
- By Inheritance
- StrO
- Error
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- implicit class StrNum extends Numeric[StrNum] with Ordered[StrNum] with Serializable
The
StrNum
implicit class is used to represent and operate on string numbers.The
StrNum
implicit class is used to represent and operate on string numbers. Internally, a string number is represented as String. The semantics ofStrNum
operators are similar those in Pike.- See also
http://docs.roxen.com/pike/7.0/tutorial/strings/operators.xml ---------------------------------------------------------------------
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 _0: StrNum
Zero (0) as a string number
- val _1: StrNum
One (1) as a string number
- def abs(s: StrNum): StrNum
Return the absolute value of that string number.
Return the absolute value of that string number.
- s
that string number
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- implicit def double2StrNum(d: Double): StrNum
Implicit conversion from 'Double' to 'StrNum'.
Implicit conversion from 'Double' to 'StrNum'.
- d
the Double parameter to convert
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def flaw(method: String, message: String): Unit
Show the flaw by printing the error message.
Show the flaw by printing the error message.
- method
the method where the error occurred
- message
the error message
- Definition Classes
- Error
- def fromByteArray(buffer: Array[Byte]): StrNum
Create a string number from a byte array.
Create a string number from a byte array.
- buffer
the byte array to use
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def max(s: StrNum, t: StrNum): StrNum
Return the maximum of two string number, 's' and 't'.
Return the maximum of two string number, 's' and 't'.
- s
the first string number to compare
- t
the second string number to compare
- def min(s: StrNum, t: StrNum): StrNum
Return the minimum of two string numbers, 's' and 't'.
Return the minimum of two string numbers, 's' and 't'.
- s
the first string number to compare
- t
the second string number to compare
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- implicit val num: StrNum
Implicit numeric value for establishing type
- implicit val ord: Ordering[StrNum]
Ordering for string numbers
- def signum(s: StrNum): StrNum
Return the signum (sgn) of a StrNum.
Return the signum (sgn) of a StrNum.
- s
the StrNum to obtain the signum of
- def sqrt(s: StrNum): StrNum
Return the square root of that string number (currently not supported).
Return the square root of that string number (currently not supported).
- s
that string number
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated