Drop deprecated char binary operations.
This commit is contained in:
@@ -23,162 +23,27 @@ package kotlin
|
||||
public class Char private () : Comparable<Char> {
|
||||
companion object {}
|
||||
|
||||
/**
|
||||
* Compares the character code of this character with the specified value for order.
|
||||
* Returns zero if this value is equal to the specified other value, a negative number if its less than other,
|
||||
* or a positive number if its greater than other.
|
||||
*/
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int or other operand to Char.")
|
||||
public fun compareTo(other: Byte): Int
|
||||
/**
|
||||
* Compares this value with the specified value for order.
|
||||
* Returns zero if this value is equal to the specified other value, a negative number if its less than other,
|
||||
* or a positive number if its greater than other.
|
||||
*/
|
||||
public override fun compareTo(other: Char): Int
|
||||
/**
|
||||
* Compares the character code of this character with the specified value for order.
|
||||
* Returns zero if this value is equal to the specified other value, a negative number if its less than other,
|
||||
* or a positive number if its greater than other.
|
||||
*/
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int or other operand to Char.")
|
||||
public fun compareTo(other: Short): Int
|
||||
/**
|
||||
* Compares the character code of this character with the specified value for order.
|
||||
* Returns zero if this value is equal to the specified other value, a negative number if its less than other,
|
||||
* or a positive number if its greater than other.
|
||||
*/
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int or other operand to Char.")
|
||||
public fun compareTo(other: Int): Int
|
||||
/**
|
||||
* Compares the character code of this character with the specified value for order.
|
||||
* Returns zero if this value is equal to the specified other value, a negative number if its less than other,
|
||||
* or a positive number if its greater than other.
|
||||
*/
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int or other operand to Char.")
|
||||
public fun compareTo(other: Long): Int
|
||||
/**
|
||||
* Compares the character code of this character with the specified value for order.
|
||||
* Returns zero if this value is equal to the specified other value, a negative number if its less than other,
|
||||
* or a positive number if its greater than other.
|
||||
*/
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun compareTo(other: Float): Int
|
||||
/**
|
||||
* Compares the character code of this character with the specified value for order.
|
||||
* Returns zero if this value is equal to the specified other value, a negative number if its less than other,
|
||||
* or a positive number if its greater than other.
|
||||
*/
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun compareTo(other: Double): Int
|
||||
|
||||
/** Adds the other value to this value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun plus(other: Byte): Int
|
||||
/** Adds the other value to this value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun plus(other: Short): Int
|
||||
/** Adds the other value to this value. */
|
||||
deprecated("This operation will change return type to Char in M13. Either call toInt or toChar on return value or convert Char operand to Int.")
|
||||
public fun plus(other: Int): Int
|
||||
/** Adds the other value to this value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun plus(other: Long): Long
|
||||
/** Adds the other value to this value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun plus(other: Float): Float
|
||||
/** Adds the other value to this value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun plus(other: Double): Double
|
||||
|
||||
/** Subtracts the other value from this value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun minus(other: Byte): Int
|
||||
/** Subtracts the other value from this value. */
|
||||
public fun minus(other: Char): Int
|
||||
/** Subtracts the other value from this value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun minus(other: Short): Int
|
||||
/** Subtracts the other value from this value. */
|
||||
deprecated("This operation will change return type to Char in M13. Either call toInt or toChar on return value or convert Char operand to Int.")
|
||||
public fun minus(other: Int): Int
|
||||
/** Subtracts the other value from this value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun minus(other: Long): Long
|
||||
/** Subtracts the other value from this value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun minus(other: Float): Float
|
||||
/** Subtracts the other value from this value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun minus(other: Double): Double
|
||||
|
||||
/** Multiplies this value by the other value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun times(other: Byte): Int
|
||||
/** Multiplies this value by the other value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun times(other: Short): Int
|
||||
/** Multiplies this value by the other value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun times(other: Int): Int
|
||||
/** Multiplies this value by the other value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun times(other: Long): Long
|
||||
/** Multiplies this value by the other value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun times(other: Float): Float
|
||||
/** Multiplies this value by the other value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun times(other: Double): Double
|
||||
|
||||
/** Divides this value by the other value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun div(other: Byte): Int
|
||||
/** Divides this value by the other value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun div(other: Short): Int
|
||||
/** Divides this value by the other value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun div(other: Int): Int
|
||||
/** Divides this value by the other value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun div(other: Long): Long
|
||||
/** Divides this value by the other value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun div(other: Float): Float
|
||||
/** Divides this value by the other value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun div(other: Double): Double
|
||||
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun mod(other: Byte): Int
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun mod(other: Short): Int
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun mod(other: Int): Int
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun mod(other: Long): Long
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun mod(other: Float): Float
|
||||
/** Calculates the remainder of dividing this value by the other value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun mod(other: Double): Double
|
||||
|
||||
/** Increments this value. */
|
||||
public fun inc(): Char
|
||||
/** Decrements this value. */
|
||||
public fun dec(): Char
|
||||
/** Returns this value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun plus(): Int
|
||||
/** Returns the negative of this value. */
|
||||
deprecated("This operation doesn't make sense and shall be removed in M13. Consider converting Char operand to Int.")
|
||||
public fun minus(): Int
|
||||
|
||||
/** Creates a range from this value to the specified [other] value. */
|
||||
public fun rangeTo(other: Char): CharRange
|
||||
|
||||
Reference in New Issue
Block a user