[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.


Constuctor Index

O Character(char)
Constructs an Character object initialized to the specified int value.

Methods

O doubleValue()
Returns the value of this Character as a double.
O equals(Object)
Compares this object to the specified object.
O floatValue()
Returns the value of this Character as a float.
O hashCode()
Returns a hashcode for this Character.
O intValue()
Returns the value of this Character as an int.
O longValue()
Returns the value of this Character as a long.
O toString()
Returns a String object representing this Character's value.

Constructors

O Character
public Character(char value);
Constructs an Character object initialized to the specified int value.

Parameters:
value - the initial value of the Character

Methods

O intValue
public int intValue();
Returns the value of this Character as an int.

Overrides:
intValue in class Number

O longValue

public long longValue();
Returns the value of this Character as a long.

Overrides:
longValue in class Number

O floatValue

public float floatValue();
Returns the value of this Character as a float.

Overrides:
floatValue in class Number

O doubleValue

public double doubleValue();
Returns the value of this Character as a double.

Overrides:
doubleValue in class Number

O toString

public String toString();
Returns a String object representing this Character's value.

Overrides:
toString in class Object

O hashCode

public int hashCode();
Returns a hashcode for this Character.

Overrides:
hashCode in class Object

O 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