beamly.core.lang.extensions

StringW

final class StringW extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StringW
  2. AnyVal
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StringW(underlying: String)

Value Members

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

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

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

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

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

    Definition Classes
    AnyVal → Any
  6. def isBlank: Boolean

    returns

    true if a string is null, empty or contains only whitespace

  7. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  8. def nonBlank: Boolean

    returns

    true if string contains non-whitespace characters

  9. def toBooleanOption: Option[Boolean]

  10. def toByteOption: Option[Byte]

  11. def toDoubleOption: Option[Double]

  12. def toFloatOption: Option[Float]

  13. def toHyphenCase: String

    Replaces word barriers with hyphens (and by "hyphens" what is actually meant is "hyphen-minus", ie.

    Replaces word barriers with hyphens (and by "hyphens" what is actually meant is "hyphen-minus", ie. U+002D) and converts entire string to lowercase.

    "name".toHyphenCase == "name"
    "NAME".toHyphenCase == "name"
    "EpisodeId".toHyphenCase == "episode-id"
    "beamLYstuff".toHyphenCase == "beam-ly-stuff"
    "BEAMlySTUFF.toHyphenCase "beam-ly-stuff"
    returns

    string with word barriers represented with hyphens

  14. def toIntOption: Option[Int]

  15. def toLongOption: Option[Long]

  16. def toShortOption: Option[Short]

  17. def toSnakeCase: String

    Replaces word barriers with underscores and converts entire string to lowercase.

    Replaces word barriers with underscores and converts entire string to lowercase. "name".toSnakeCase == "name" "NAME".toSnakeCase == "name" "EpisodeId".toSnakeCase == "episode_id" "beamLYstuff".toSnakeCase == "beam_ly_stuff" "BEAMlySTUFF.toSnakeCase "beam_ly_stuff"

    returns

    string with word barriers represented with underscores

  18. def toString(): String

    Definition Classes
    Any
  19. val underlying: String

Inherited from AnyVal

Inherited from Any

Ungrouped