org.apache.commons.beanutils.memoryleaktests.pojotests
Class CustomInteger

java.lang.Object
  extended by java.lang.Number
      extended by org.apache.commons.beanutils.memoryleaktests.pojotests.CustomInteger
All Implemented Interfaces:
Serializable

public class CustomInteger
extends Number

Custom number implementation to test with converters.

See Also:
Serialized Form

Constructor Summary
CustomInteger()
          Construct a new instance.
CustomInteger(int i)
          Construct a new instance.
 
Method Summary
 double doubleValue()
          Return the double value.
 float floatValue()
          Return the float value.
 int intValue()
          Return the integer value.
 long longValue()
          Return the long value.
 String toString()
          Return a String representation of this number.
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomInteger

public CustomInteger()
Construct a new instance.


CustomInteger

public CustomInteger(int i)
Construct a new instance.

Parameters:
i - the integer value
Method Detail

doubleValue

public double doubleValue()
Return the double value.

Specified by:
doubleValue in class Number
Returns:
the double value

floatValue

public float floatValue()
Return the float value.

Specified by:
floatValue in class Number
Returns:
the float value

intValue

public int intValue()
Return the integer value.

Specified by:
intValue in class Number
Returns:
the integer value

longValue

public long longValue()
Return the long value.

Specified by:
longValue in class Number
Returns:
the long value

toString

public String toString()
Return a String representation of this number.

Overrides:
toString in class Object


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.