com.bankframe.util
Class NeutralValueUtils

java.lang.Object
  extended bycom.bankframe.util.NeutralValueUtils

public class NeutralValueUtils
extends java.lang.Object

This class provides utility methods for checking neutral values


Constructor Summary
NeutralValueUtils()
           
 
Method Summary
static java.lang.Boolean getNeutralValueIfRequired(java.lang.Boolean value)
          This methods returns the attribute value.
static java.lang.Double getNeutralValueIfRequired(java.lang.Double value)
          This methods returns the attribute value.
static java.lang.Float getNeutralValueIfRequired(java.lang.Float value)
          This methods returns the attribute value.
static java.lang.Integer getNeutralValueIfRequired(java.lang.Integer value)
          This methods returns the attribute value.
static java.lang.Long getNeutralValueIfRequired(java.lang.Long value)
          This methods returns the attribute value.
static java.lang.Short getNeutralValueIfRequired(java.lang.Short value)
          This methods returns the attribute value.
static java.lang.String getNeutralValueIfRequired(java.lang.String value)
          This methods returns the attribute value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NeutralValueUtils

public NeutralValueUtils()
Method Detail

getNeutralValueIfRequired

public static java.lang.Double getNeutralValueIfRequired(java.lang.Double value)
This methods returns the attribute value. If the value is null then the attribute is returned as 0.0.

Parameters:
value - Double
Returns:
Double

getNeutralValueIfRequired

public static java.lang.Float getNeutralValueIfRequired(java.lang.Float value)
This methods returns the attribute value. If the value is null then the attribute is returned as 0.0.

Parameters:
value - Float
Returns:
Float

getNeutralValueIfRequired

public static java.lang.Integer getNeutralValueIfRequired(java.lang.Integer value)
This methods returns the attribute value. If the value is null then the attribute is returned as 0.

Parameters:
value - Integer
Returns:
Integer

getNeutralValueIfRequired

public static java.lang.Long getNeutralValueIfRequired(java.lang.Long value)
This methods returns the attribute value. If the value is null then the attribute is returned as 0.

Parameters:
value - Long
Returns:
Long

getNeutralValueIfRequired

public static java.lang.Short getNeutralValueIfRequired(java.lang.Short value)
This methods returns the attribute value. If the value is null then the attribute is returned as 0.

Parameters:
value - Short
Returns:
Short

getNeutralValueIfRequired

public static java.lang.String getNeutralValueIfRequired(java.lang.String value)
This methods returns the attribute value. If the value is null or zero length then the attribute is returned as "".

Parameters:
value - String
Returns:
String

getNeutralValueIfRequired

public static java.lang.Boolean getNeutralValueIfRequired(java.lang.Boolean value)
This methods returns the attribute value. If the value is null then Boolean.FALSE is returned.

Parameters:
value - Boolean
Returns:
Boolean


Copyright © 2005, 2007, Oracle. All rights reserved.