![]() Returns annotations that are associated with this element. setBoolean public void setBoolean( Object obj,.NullPointerException - if the specified object is null IllegalArgumentException - if the specified object is not anįield (or a subclass or implementor thereof), Parameters: obj - the object whose field should be modified value - the new value for the field of objīeing modified Throws: IllegalAccessException - if this Field objectįield is either inaccessible or final. The field's value is set according to the preceding rules. The field is set to the possibly unwrapped and widened new value. Widening conversion, the method throws an If, after possible unwrapping, the new value cannot beĬonverted to the type of the underlying field by an identity or If this attempt fails, the method throws an If the underlying field is of a primitive type, an unwrappingĬonversion is attempted to convert the new value to a value ofĪ primitive type. In which other parts of a program continue to use the original Use inĪny other context may have unpredictable effects, including cases Made available for access by other parts of a program. Instances of classes with blank final fields, before they are Is meaningful only during deserialization or reconstruction of IllegalAccessException unless setAccessible(true)Īnd the field is non-static. If the underlying field is final, the method throws an If the specified object argument is notĪn instance of the class or interface declaring the underlying Specified object argument is null, the method throws a Otherwise the underlying field is an instance field. If the underlying field is static, the obj argument is Value is automatically unwrapped if the underlying field has a ![]() Specified object argument to the specified new value. Sets the field represented by this Field object on the
0 Comments
Leave a Reply. |