EventSetDescriptorclasses associated with the annotated code element. A
truevalue for the "transient" attribute indicates to encoders derived from
Encoderthat this feature should be ignored.
Transient annotation may be be used
in any of the methods that are involved
to identify the transient feature in the annotated class and its subclasses.
Normally, the method that starts with "get" is the best place
to put the annotation and it is this declaration
that takes precedence in the case of multiple annotations
being defined for the same feature.
To declare a feature non-transient in a class
whose superclass declares it transient,
In all cases, the
if a feature is transient by referring to the annotation
on the most specific superclass.
Transient annotation is present
in any superclass the feature is not transient.
|Modifier and Type||Optional Element and Description|
Returns whether or not the
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2019, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.