object StrO
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
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
implicit
class
StrNum extends Numeric[StrNum] with Ordered[StrNum]
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )