Overview | Package | Class | Tree | Deprecated | Index | Help
| Groovy JDK

## java.lang
Class Character

Method Summary
`int` | `compareTo(Number right)` Compare a Character and a Number digit (i representation
`int` | `compareTo(Character right)` Compare two Characters digit (i representation
`Number` | `div(Number right)` Divide a Character by a Number digit (i representation
`Number` | `div(Character right)` Divide one Character by another digit (i representation
`Number` | `intdiv(Number right)` Integer Divide a Character by a Number
`Number` | `intdiv(Character right)` Integer Divide two Characters
`boolean` | `isDigit()` Determines if a character is a digit Synonym for 'Character
`boolean` | `isLetter()` Determines if a character is a letter Synonym for 'Character
`boolean` | `isLetterOrDigit()` Determines if a character is a letter or digit Synonym for 'Character
`boolean` | `isLowerCase()` Determine if a Character is lowercase Synonym for 'Character
`boolean` | `isUpperCase()` Determine if a Character is uppercase Synonym for 'Character
`boolean` | `isWhitespace()` Determines if a character is a whitespace character Synonym for 'Character
`Number` | `minus(Number right)` Subtract a Number from a Character digit (i representation
`Number` | `minus(Character right)` Subtract one Characters from another by converting them both to their Integer representations digit (i representation
`Number` | `multiply(Number right)` Multiply a Character by a Number digit (i representation
`Number` | `multiply(Character right)` Multiply two Characters digit (i representation
`Character` | `next()` Increment a Character by one
`Number` | `plus(Number right)` Add a Character and a Number This operation will always create a new object for the result, while the operands remain unchanged of the digits '0' through '9', and the result is addition of the integer conversion of this character plus the operand
`Number` | `plus(Character right)` Add two Characters through '9') and add the results This operation will always create a new object for the result, while the operands remain unchanged
`Character` | `previous()` Decrement a Character by one
`char` | `toLowerCase()` Converts the character to lowercase Synonym for 'Character
`char` | `toUpperCase()` Converts the character to uppercase Synonym for 'Character

Method Detail

### compareTo

    public int compareTo(Number right)

  Compare a Character and a Number. The character is assumed to be a digit (i.e. '0' through '9') which is converted to its Integer representation.

Parameters:
  `right` - a Number.
Returns:
  the result of the comparison

### compareTo

    public int compareTo(Character right)

  Compare two Characters. Each character is assumed to be a digit (i.e. '0' through '9') which is converted to its Integer representation.

Parameters:
  `right` - a Character.
Returns:
  the result of the comparison

### div

    public Number div(Number right)

  Divide a Character by a Number. The character is assumed to be a digit (i.e. '0' through '9') which is converted to its Integer representation.

Parameters:
  `right` - a Number.
Returns:
  the multiplication of both

### div

    public Number div(Character right)

  Divide one Character by another. Each character is assumed to be a digit (i.e. '0' through '9') which is converted to its Integer representation.

Parameters:
  `right` - another Character.
Returns:
  the multiplication of both

### intdiv

    public Number intdiv(Number right)

  Integer Divide a Character by a Number.

Parameters:
  `right` - a Number.
Returns:
  the integer division of both

### intdiv

    public Number intdiv(Character right)

  Integer Divide two Characters.

Parameters:
  `right` - another Character.
Returns:
  the integer division of both

### isDigit

    public boolean isDigit()

  Determines if a character is a digit. Synonym for 'Character.isDigit(this)'.

Returns:
  true if the character is a digit

See:
  Character#isDigit.

### isLetter

    public boolean isLetter()

  Determines if a character is a letter. Synonym for 'Character.isLetter(this)'.

Returns:
  true if the character is a letter

See:
  Character#isLetter.

### isLetterOrDigit

    public boolean isLetterOrDigit()

  Determines if a character is a letter or digit. Synonym for 'Character.isLetterOrDigit(this)'.

Returns:
  true if the character is a letter or digit

See:
  Character#isLetterOrDigit.

### isLowerCase

    public boolean isLowerCase()

  Determine if a Character is lowercase. Synonym for 'Character.isLowerCase(this)'.

Returns:
  true if the character is lowercase

See:
  Character#isLowerCase.

### isUpperCase

    public boolean isUpperCase()

  Determine if a Character is uppercase. Synonym for 'Character.isUpperCase(this)'.

Returns:
  true if the character is uppercase

See:
  Character#isUpperCase.

### isWhitespace

    public boolean isWhitespace()

  Determines if a character is a whitespace character. Synonym for 'Character.isWhitespace(this)'.

Returns:
  true if the character is a whitespace character

See:
  Character#isWhitespace.

### minus

    public Number minus(Number right)

  Subtract a Number from a Character. The character is assumed to be a digit (i.e. '0' through '9') which is converted to its Integer representation.

Parameters:
  `right` - a Number.
Returns:
  the addition of the Character and the Number

### minus

    public Number minus(Character right)

  Subtract one Characters from another by converting them both to their Integer representations. Each character is assumed to be a digit (i.e. '0' through '9') which is converted to its Integer representation.

Parameters:
  `right` - a Character.
Returns:
  the addition of both Characters

### multiply

    public Number multiply(Number right)

  Multiply a Character by a Number. The character is assumed to be a digit (i.e. '0' through '9') which is converted to its Integer representation.

Parameters:
  `right` - a Number.
Returns:
  the multiplication of both

### multiply

    public Number multiply(Character right)

  Multiply two Characters. Each character is assumed to be a digit (i.e. '0' through '9') which is converted to its Integer representation.

Parameters:
  `right` - another Character.
Returns:
  the multiplication of both

### next

    public Character next()

  Increment a Character by one.

Returns:
  an incremented Number

### plus

    public Number plus(Number right)

  Add a Character and a Number. This operation will always create a new object for the result, while the operands remain unchanged. This character should be one of the digits '0' through '9', and the result is addition of the integer conversion of this character plus the operand.

Parameters:
  `right` - a Number.
Returns:
  the addition of the Character and the Number

See:
  Integer#valueOf(String).

### plus

    public Number plus(Character right)

  Add two Characters. Both characters are assumed to represent digits ('0' through '9') and add the results. This operation will always create a new object for the result, while the operands remain unchanged.

Parameters:
  `right` - a Character.
Returns:
  the addition of both Characters

See:
  #plus(Number, Character).

### previous

    public Character previous()

  Decrement a Character by one.

Returns:
  a decremented Number

### toLowerCase

    public char toLowerCase()

  Converts the character to lowercase. Synonym for 'Character.toLowerCase(this)'.

Returns:
  the lowercase equivalent of the character, if any; otherwise, the character itself.

See:
  Character#isLowerCase.
  String#toLowerCase.

### toUpperCase

    public char toUpperCase()

  Converts the character to uppercase. Synonym for 'Character.toUpperCase(this)'.

Returns:
  the uppercase equivalent of the character, if any; otherwise, the character itself.

See:
  Character#isUpperCase.
  String#toUpperCase.

Overview | Package | Class | Tree | Deprecated | Index | Help
| Groovy JDK