mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/asset/AssetCommandViewImpl.java
private Object returnDefaultPrimitive(final Class<?> type)
    {
        final String defualtValue = "0";
        if (type.equals(boolean.class))
        {
            return false;
        }
        else if (type.equals(int.class))
        {
            return Integer.valueOf(defualtValue);
        }
        else if (type.equals(double.class))
        {
            return Double.valueOf(defualtValue);
        }
        else if (type.equals(float.class))
        {
            return Float.valueOf(defualtValue);
        }
        else if (type.equals(long.class))
        {
            return Long.valueOf(defualtValue);
        }
        else if (type.equals(short.class))
        {
            return Short.valueOf(defualtValue);
        }
        else if (type.equals(byte.class))
        {
            return Byte.valueOf(defualtValue);
        }
        else if (type.equals(char.class))
        {
            return Character.valueOf('a');
        }
        else
        {
            return null;
        }
    }
/**
     * Method that returns the default value for the primitive class type passed to this method.
     * 
     * @param type
     *          Primitive class type to return the default value for.
     * @return
     *          Default value for the specified primitive type.
     */
Method that returns the default value for the primitive class type passed to this method.

@param type
Primitive class type to return the default value for.
@return
Default value for the specified primitive type.
Method that returns the default value for the primitive class type passed to this method . @param type Primitive class type to return the default value for . @return Default value for the specified primitive type .
private Object returnDefaultPrimitive(final Class<?> type)
    {
        final String defualtValue = "0";
        if (type.equals(boolean.class))
        {
            return false;
        }
        else if (type.equals(int.class))
        {
            return Integer.valueOf(defualtValue);
        }
        else if (type.equals(double.class))
        {
            return Double.valueOf(defualtValue);
        }
        else if (type.equals(float.class))
        {
            return Float.valueOf(defualtValue);
        }
        else if (type.equals(long.class))
        {
            return Long.valueOf(defualtValue);
        }
        else if (type.equals(short.class))
        {
            return Short.valueOf(defualtValue);
        }
        else if (type.equals(byte.class))
        {
            return Byte.valueOf(defualtValue);
        }
        else if (type.equals(char.class))
        {
            return Character.valueOf('a');
        }
        else
        {
            return null;
        }
    }
private Object returnDefaultPrimitive ( final Class < ? > type ) { final String defualtValue = "0" ; if ( type . equals ( boolean . class ) ) { return false ; } else if ( type . equals ( int . class ) ) { return Integer . valueOf ( defualtValue ) ; } else if ( type . equals ( double . class ) ) { return Double . valueOf ( defualtValue ) ; } else if ( type . equals ( float . class ) ) { return Float . valueOf ( defualtValue ) ; } else if ( type . equals ( long . class ) ) { return Long . valueOf ( defualtValue ) ; } else if ( type . equals ( short . class ) ) { return Short . valueOf ( defualtValue ) ; } else if ( type . equals ( byte . class ) ) { return Byte . valueOf ( defualtValue ) ; } else if ( type . equals ( char . class ) ) { return Character . valueOf ( 'a' ) ; } else { return null ; } }
Method that returns the default value for the primitive class type passed to this method.
Method that returns the default value for the primitive class type passed to this method .