com.bankframe.util
Class NeutralValueUtils

java.lang.Object
  extended by com.bankframe.util.NeutralValueUtils

public class NeutralValueUtils
extends Object

This class provides utility methods for checking neutral values


Constructor Summary
NeutralValueUtils()
           
 
Method Summary
static Boolean getNeutralValueIfRequired(Boolean value)
          This methods returns the attribute value.
static Double getNeutralValueIfRequired(Double value)
          This methods returns the attribute value.
static Float getNeutralValueIfRequired(Float value)
          This methods returns the attribute value.
static Integer getNeutralValueIfRequired(Integer value)
          This methods returns the attribute value.
static Long getNeutralValueIfRequired(Long value)
          This methods returns the attribute value.
static Short getNeutralValueIfRequired(Short value)
          This methods returns the attribute value.
static String getNeutralValueIfRequired(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 Double getNeutralValueIfRequired(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 Float getNeutralValueIfRequired(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 Integer getNeutralValueIfRequired(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 Long getNeutralValueIfRequired(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 Short getNeutralValueIfRequired(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 String getNeutralValueIfRequired(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 Boolean getNeutralValueIfRequired(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.