[all packages]
[package net.sf.pizzacompiler.lang]
[class hierarchy]
[index]
public final class net.sf.pizzacompiler.lang.Character
(source file: /home/enno/source/tmp/pizza/main/src/net/sf/pizzacompiler/lang/Character.pizza)
java.lang.Object
|
+----java.lang.Number
|
+----net.sf.pizzacompiler.lang.Character
The pure class interface.
public final class Character
extends Number
implements java.io.Serializable
-
A home-grown analogue of java.lang.Character, which is a subclass
of java.lang.Number. Used by the Pizza compiler to convert
a character to an object. Based on the code for java.lang.Integer.
- Character(char)
-
Constructs an Character object initialized to the specified int value.
- doubleValue()
-
Returns the value of this Character as a double.
- equals(Object)
-
Compares this object to the specified object.
- floatValue()
-
Returns the value of this Character as a float.
- hashCode()
-
Returns a hashcode for this Character.
- intValue()
-
Returns the value of this Character as an int.
- longValue()
-
Returns the value of this Character as a long.
- toString()
-
Returns a String object representing this Character's value.
Character
public Character(char value);
-
Constructs an Character object initialized to the specified int value.
- Parameters:
- value - the initial value of the Character
intValue
public int intValue();
-
Returns the value of this Character as an int.
- Overrides:
- intValue in class Number
longValue
public long longValue();
-
Returns the value of this Character as a long.
- Overrides:
- longValue in class Number
floatValue
public float floatValue();
-
Returns the value of this Character as a float.
- Overrides:
- floatValue in class Number
doubleValue
public double doubleValue();
-
Returns the value of this Character as a double.
- Overrides:
- doubleValue in class Number
toString
public String toString();
-
Returns a String object representing this Character's value.
- Overrides:
- toString in class Object
hashCode
public int hashCode();
-
Returns a hashcode for this Character.
- Overrides:
- hashCode in class Object
equals
public boolean equals(Object obj);
-
Compares this object to the specified object.
- Parameters:
- obj - the object to compare with
- Returns:
- true if the objects are the same; false otherwise.
- Overrides:
- equals in class Object
[all packages]
[package net.sf.pizzacompiler.lang]
[class hierarchy]
[index]
net.sf.pizzacompiler.lang.Character.html