Class

io.snappydata.util.StringUtils

SnappyInterpolator

Related Doc: package StringUtils

Permalink

implicit final class SnappyInterpolator extends AnyVal

Defines a few String Interpolators. Interpolators are things like the built-in s"Hello $name", where the "s" interpolator plugs in the value of the s variable.

To use any of these interpolators, you must use this include: import io.snappydata.util.StringUtils._

TODO: Add some more, e.g., loginfo that prepends Thread name, pid, etc.?

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SnappyInterpolator
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SnappyInterpolator(sc: StringContext)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  7. def pn(args: Any*): String

    Permalink

    The pn string interpolator "pretty numbers" prints numbers using the default number format (i.e., it automatically puts in commas (thousands separator)).

    The pn string interpolator "pretty numbers" prints numbers using the default number format (i.e., it automatically puts in commas (thousands separator)).

    Usage: val x = 1001; println( pn"$x" ) // prints "1,001"

  8. val sc: StringContext

    Permalink
  9. def ti(args: Any*): String

    Permalink

    Prepends a string with the name of the current thread, and processes the rest of the string as if with s"..."

  10. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped