code: public static final boolean valueIsNotDefault(FieldType type, Object value)
     {
        boolean result = true;
  
        if (value == null)
        {
           result = false;
        }
        else
        {
           DataType dataType = type.getDataType();
           switch (dataType)
           {
              case BOOLEAN:
              {
                 result = ((Boolean) value).booleanValue();
                 break;
              }
  
              case CURRENCY:
              case NUMERIC:
              {
                 result = !NumberHelper.equals(((Number) value).doubleValue(), 0.0, 0.00001);
                 break;
              }
  
              case DURATION:
              {
                 result = (((Duration) value).getDuration() != 0);
                 break;
              }
  
              default:
              {
                 break;
              }
           }
        }
  
        return result;
     }
docs: Determines if this value is the default value for the given field type.
  
  @param type field type
  @param value value
  @return true if the value is not default