scala.runtime

RichChar

class RichChar extends IntegralProxy[Char]

attributes: final
linear super types: IntegralProxy[Char], RangedProxy[Char], ScalaWholeNumberProxy[Char], ScalaNumberProxy[Char], OrderedProxy[Char], Ordered[Char], Comparable[Char], Typed[Char], Proxy, ScalaNumericConversions, ScalaNumber, Number, Serializable, AnyRef, Any
source: RichChar.scala
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. RichChar
  2. IntegralProxy
  3. RangedProxy
  4. ScalaWholeNumberProxy
  5. ScalaNumberProxy
  6. OrderedProxy
  7. Ordered
  8. Comparable
  9. Typed
  10. Proxy
  11. ScalaNumericConversions
  12. ScalaNumber
  13. Number
  14. Serializable
  15. AnyRef
  16. Any
Visibility
  1. Public
  2. All
Impl.
  1. Concrete
  2. Abstract

Instance constructors

  1. new RichChar ( self : Char )

Type Members

  1. type ResultWithoutStep = NumericRange[Char]

    definition classes: IntegralProxyRangedProxy

Value Members

  1. def != ( arg0 : AnyRef ) : Boolean

    attributes: final
    definition classes: AnyRef
  2. def != ( arg0 : Any ) : Boolean

    o != arg0 is the same as !(o == (arg0)).

    o != arg0 is the same as !(o == (arg0)).

    arg0

    the object to compare against this object for dis-equality.

    returns

    false if the receiver object is equivalent to the argument; true otherwise.

    attributes: final
    definition classes: Any
  3. def ## () : Int

    attributes: final
    definition classes: AnyRef → Any
  4. def $asInstanceOf [T0] () : T0

    attributes: final
    definition classes: AnyRef
  5. def $isInstanceOf [T0] () : Boolean

    attributes: final
    definition classes: AnyRef
  6. def < ( that : Char ) : Boolean

    definition classes: Ordered
  7. def <= ( that : Char ) : Boolean

    definition classes: Ordered
  8. def == ( arg0 : AnyRef ) : Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: AnyRef
  9. def == ( arg0 : Any ) : Boolean

    o == arg0 is the same as o.equals(arg0).

    o == arg0 is the same as o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: Any
  10. def > ( that : Char ) : Boolean

    definition classes: Ordered
  11. def >= ( that : Char ) : Boolean

    definition classes: Ordered
  12. def abs : Char

    definition classes: ScalaNumberProxy
  13. def asDigit : Int

  14. def asInstanceOf [T0] : T0

    This method is used to cast the receiver object to be of type T0.

    This method is used to cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression 1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expression List(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    the receiver object.

    attributes: final
    definition classes: Any
  15. def byteValue () : Byte

    definition classes: Number
  16. def clone () : AnyRef

    This method creates and returns a copy of the receiver object.

    This method creates and returns a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    attributes: protected[lang]
    definition classes: AnyRef
    annotations: @throws()
  17. def compare ( y : Char ) : Int

    Result of comparing this with operand that.

    Result of comparing this with operand that. returns x where x < 0 iff this < that x == 0 iff this == that x > 0 iff this > that

    definition classes: OrderedProxyOrdered
  18. def compareTo ( that : Char ) : Int

    definition classes: Ordered → Comparable
  19. def doubleValue () : Double

    definition classes: ScalaNumberProxy → Number
  20. def eq ( arg0 : AnyRef ) : Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation] on non-null instances of AnyRef: * It is reflexive: for any non-null instance x of type AnyRef, x.eq(x) returns true. * It is symmetric: for any non-null instances x and y of type AnyRef, x.eq(y) returns true if and only if y.eq(x) returns true. * It is transitive: for any non-null instances x, y, and z of type AnyRef if x.eq(y) returns true and y.eq(z) returns true, then x.eq(z) returns true.

    Additionally, the eq method has three other properties. * It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false. * For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false. * null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    arg0

    the object to compare against this object for reference equality.

    returns

    true if the argument is a reference to the receiver object; false otherwise.

    attributes: final
    definition classes: AnyRef
  21. def equals ( that : Any ) : Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation]: * It is reflexive: for any instance x of type Any, x.equals(x) should return true. * It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true. * It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same Int (o1.hashCode.equals(o2.hashCode)).

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: Proxy → AnyRef → Any
  22. def finalize () : Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    The details of when and if the finalize method are invoked, as well as the interaction between finalize and non-local returns and exceptions, are all platform dependent.

    attributes: protected[lang]
    definition classes: AnyRef
    annotations: @throws()
  23. def floatValue () : Float

    definition classes: ScalaNumberProxy → Number
  24. def getClass () : java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

    Returns a representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    attributes: final
    definition classes: AnyRef
  25. def getDirectionality : Byte

  26. def getNumericValue : Int

  27. def getType : Int

  28. def hashCode () : Int

    Returns a hash code value for the object.

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    returns

    the hash code value for the object.

    definition classes: Proxy → AnyRef → Any
  29. def intValue () : Int

    definition classes: ScalaNumberProxy → Number
  30. def isControl : Boolean

  31. def isDigit : Boolean

  32. def isHighSurrogate : Boolean

  33. def isIdentifierIgnorable : Boolean

  34. def isInstanceOf [T0] : Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

    This method is used to test whether the dynamic type of the receiver object is T0.

    Note that the test result of the test is modulo Scala's erasure semantics. Therefore the expression 1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    attributes: final
    definition classes: Any
  35. def isLetter : Boolean

  36. def isLetterOrDigit : Boolean

  37. def isLowSurrogate : Boolean

  38. def isLower : Boolean

  39. def isLowerCase : Boolean

    annotations: @deprecated( message = "Use ch.isLower instead" )
      deprecated:
    1. Use ch.isLower instead

  40. def isMirrored : Boolean

  41. def isSpaceChar : Boolean

  42. def isSurrogate : Boolean

  43. def isTitleCase : Boolean

  44. def isUnicodeIdentifierPart : Boolean

  45. def isUnicodeIdentifierStart : Boolean

  46. def isUpper : Boolean

  47. def isUpperCase : Boolean

    annotations: @deprecated( message = "Use ch.isUpper instead" )
      deprecated:
    1. Use ch.isUpper instead

  48. def isValidByte : Boolean

    definition classes: ScalaNumericConversions
  49. def isValidChar : Boolean

    definition classes: ScalaNumericConversions
  50. def isValidInt : Boolean

    definition classes: ScalaNumericConversions
  51. def isValidShort : Boolean

    definition classes: ScalaNumericConversions
  52. def isWhitespace : Boolean

  53. def isWhole () : Boolean

    definition classes: ScalaWholeNumberProxy → ScalaNumber
  54. def longValue () : Long

    definition classes: ScalaNumberProxy → Number
  55. def max ( that : Char ) : Char

    definition classes: ScalaNumberProxy
  56. def min ( that : Char ) : Char

    definition classes: ScalaNumberProxy
  57. def ne ( arg0 : AnyRef ) : Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

    o.ne(arg0) is the same as !(o.eq(arg0)).

    arg0

    the object to compare against this object for reference dis-equality.

    returns

    false if the argument is not a reference to the receiver object; true otherwise.

    attributes: final
    definition classes: AnyRef
  58. def notify () : Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  59. def notifyAll () : Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  60. val ord : Ordering[Char]

    attributes: protected
    definition classes: ScalaNumberProxyOrderedProxy
  61. def reverseBytes : Char

  62. val self : Char

    definition classes: RichCharTypedProxy
  63. def shortValue () : Short

    definition classes: Number
  64. def signum : Int

    definition classes: ScalaNumberProxy
  65. def synchronized [T0] ( arg0 : ⇒ T0 ) : T0

    attributes: final
    definition classes: AnyRef
  66. def to ( end : Char , step : Char ) : Inclusive[Char]

    definition classes: IntegralProxyRangedProxy
  67. def to ( end : Char ) : Inclusive[Char]

    definition classes: IntegralProxyRangedProxy
  68. def toByte : Byte

    definition classes: ScalaNumericConversions
  69. def toChar : Char

    definition classes: ScalaNumericConversions
  70. def toDouble : Double

    definition classes: ScalaNumericConversions
  71. def toFloat : Float

    definition classes: ScalaNumericConversions
  72. def toInt : Int

    definition classes: ScalaNumericConversions
  73. def toLong : Long

    definition classes: ScalaNumericConversions
  74. def toLower : Char

  75. def toLowerCase : Char

    annotations: @deprecated( message = "Use ch.toLower instead" )
      deprecated:
    1. Use ch.toLower instead

  76. def toShort : Short

    definition classes: ScalaNumericConversions
  77. def toString () : String

    Returns a string representation of the object.

    Returns a string representation of the object.

    The default representation is platform dependent.

    returns

    a string representation of the object.

    definition classes: Proxy → AnyRef → Any
  78. def toTitleCase : Char

  79. def toUpper : Char

  80. def toUpperCase : Char

    annotations: @deprecated( message = "Use ch.toUpper instead" )
      deprecated:
    1. Use ch.toUpper instead

  81. def underlying () : AnyRef

    definition classes: ScalaNumberProxy → ScalaNumber
  82. def unifiedPrimitiveEquals ( x : Any ) : Boolean

    Should only be called after all known non-primitive types have been excluded.

    Should only be called after all known non-primitive types have been excluded. This method won't dispatch anywhere else after checking against the primitives to avoid infinite recursion between equals and this on unknown "Number" variants.

    Additionally, this should only be called if the numeric type is happy to be converted to Long, Float, and Double. If for instance a BigInt much larger than the Long range is sent here, it will claim equality with whatever Long is left in its lower 64 bits. Or a BigDecimal with more precision than Double can hold: same thing. There's no way given the interface available here to prevent this error.

    attributes: protected
    definition classes: ScalaNumericConversions
  83. def unifiedPrimitiveHashcode () : Int

    attributes: protected
    definition classes: ScalaNumericConversions
  84. def until ( end : Char , step : Char ) : Exclusive[Char]

    definition classes: IntegralProxyRangedProxy
  85. def until ( end : Char ) : Exclusive[Char]

    definition classes: IntegralProxyRangedProxy
  86. def wait () : Unit

    attributes: final
    definition classes: AnyRef
    annotations: @throws()
  87. def wait ( arg0 : Long , arg1 : Int ) : Unit

    attributes: final
    definition classes: AnyRef
    annotations: @throws()
  88. def wait ( arg0 : Long ) : Unit

    attributes: final
    definition classes: AnyRef
    annotations: @throws()

Inherited from IntegralProxy[Char]

Inherited from RangedProxy[Char]

Inherited from ScalaWholeNumberProxy[Char]

Inherited from ScalaNumberProxy[Char]

Inherited from OrderedProxy[Char]

Inherited from Ordered[Char]

Inherited from Comparable[Char]

Inherited from Typed[Char]

Inherited from Proxy

Inherited from ScalaNumericConversions

Inherited from ScalaNumber

Inherited from Number

Inherited from Serializable

Inherited from AnyRef

Inherited from Any