org.jboss.lang
Class Autoboxing

java.lang.Object
  extended by org.jboss.lang.Autoboxing

public class Autoboxing
extends Object

Autoboxing.

Version:
$Revision$
Author:
scott.stark@jboss.com, adrian@jboss.com

Constructor Summary
Autoboxing()
           
 
Method Summary
static Byte valueOf(byte n)
          Box a byte
static Character valueOf(char n)
          Box a char
static Double valueOf(double n)
          Box a double
static Float valueOf(float n)
          Box a float
static Integer valueOf(int n)
          Box an integer
static Long valueOf(long n)
          Box a long
static Short valueOf(short n)
          Box a short
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Autoboxing

public Autoboxing()
Method Detail

valueOf

public static final Byte valueOf(byte n)
Box a byte

Parameters:
n - the number
Returns:
the boxed value

valueOf

public static final Character valueOf(char n)
Box a char

Parameters:
n - the number
Returns:
the boxed value

valueOf

public static final Short valueOf(short n)
Box a short

Parameters:
n - the number
Returns:
the boxed value

valueOf

public static final Integer valueOf(int n)
Box an integer

Parameters:
n - the number
Returns:
the boxed value

valueOf

public static final Long valueOf(long n)
Box a long

Parameters:
n - the number
Returns:
the boxed value

valueOf

public static final Float valueOf(float n)
Box a float

Parameters:
n - the number
Returns:
the boxed value

valueOf

public static final Double valueOf(double n)
Box a double

Parameters:
n - the number
Returns:
the boxed value


Copyright © 2005-2007 JBoss, a division of Red Hat, Inc. All Rights Reserved.