@Override public final boolean getBoolean(String name)
   {
      boolean result = false;
      Object value = getObject(name);
      if (value != null)
      {
         if (value instanceof Boolean)
         {
            result = BooleanHelper.getBoolean((Boolean) value);
         }
         else
         {
            if (value instanceof Number)
            {
               // generally all non-zero numbers are treated as truthy
               result = ((Number) value).doubleValue() != 0.0;
            }
            else
            {
               if (value instanceof String)
               {
                  result = parseBoolean((String) value);
               }
            }
         }
      }
      return result;
   }
@ Override public final boolean getBoolean ( String name ) { boolean result = false ; Object value = getObject ( name ) ; if ( value != null ) { if ( value instanceof Boolean ) { result = BooleanHelper . getBoolean ( ( Boolean ) value ) ; } else { if ( value instanceof Number ) { result = ( ( Number ) value ) . doubleValue ( ) != 0.0 ; } else { if ( value instanceof String ) { result = parseBoolean ( ( String ) value ) ; } } } } return result ; }
{@inheritDoc}