Esper

Have TypeWidenerBoxedNumeric support java.lang.Character

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Won't Fix
  • Affects Version/s: 3.3
  • Fix Version/s: 4.0 - requires JDK6
  • Component/s: Core
  • Labels:
    None
  • Number of attachments :
    0

Description

Getting the ASCII or Unicode value of a character is simple in Java. The char type is already an integer type, so you can simply use it in most places that you would use an int. To print it out as an integer (since characters are usually printed out as the character and not the integer value), simply cast it into an int.

From http://www.codecodex.com/wiki/Find_the_ASCII_or_Unicode_value_of_a_character

Activity

Hide
Thomas Bernhardt added a comment -

The idea is to allow assigning an int-values to a Character/char, for properties or variables that are char-type. Is there more or did is this summmary correct?

Show
Thomas Bernhardt added a comment - The idea is to allow assigning an int-values to a Character/char, for properties or variables that are char-type. Is there more or did is this summmary correct?
Hide
Mathias Bogaert added a comment -

Actually the opposite. Accept a Character/char for properties or variables that are numeric-type.

Show
Mathias Bogaert added a comment - Actually the opposite. Accept a Character/char for properties or variables that are numeric-type.
Hide
Thomas Bernhardt added a comment -

Is there a good EPL statement use case for this?

Show
Thomas Bernhardt added a comment - Is there a good EPL statement use case for this?
Hide
Thomas Bernhardt added a comment -

Most relational systems don't allow assigning int-types a character without explicit convert, while most programming languages seem to allow. To prevent mistakes lets not allow.

Show
Thomas Bernhardt added a comment - Most relational systems don't allow assigning int-types a character without explicit convert, while most programming languages seem to allow. To prevent mistakes lets not allow.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: