Code example for Bundle

Methods: putFloat

0
        else if (value instanceof Byte)
            target.putByte(key, (Byte) value);
        else if (value instanceof Double)
            target.putDouble(key, (Double) value);
        else if (value instanceof Float)
            target.putFloat(key, (Float) value);
        else if (value instanceof Integer)
            target.putInt(key, (Integer) value);
        else if (value instanceof Long)
            target.putLong(key, (Long) value);
        else if (value instanceof Short)
            target.putShort(key, (Short) value);
        else if (value instanceof String)
            target.putString(key, (String) value);
        else if (errorOnFail)
            throw new UnsupportedOperationException("Could not handle type " + //$NON-NLS-1$
                    value.getClass());
    } 
 
    // --- serialization