- All Superinterfaces:
- All Known Subinterfaces:
@Beta @PublicAPI public interface Guarded extends SerializableRepresents guarded entities. A guard object's reference represents a compatibility partition of an object hierarchy. For example instances of a specific
Descriptorare only comparable when their parameterization is the same.
Please note that this interface is marked with
Betaannotation, so it can be subject of incompatible changes or removal in later releases.
Object getGuardObject()Gets the guard object associated to the generated descriptors/utilities. Note that serialization/deserialization must preserve guard object reference.
This method is intended to use only for ensuring the compatibility of manipulated objects.
Implementations might use the associated
DescriptorParametersreference as the guard object, however it is a non recommended practice to use this method to access the associated generator to perform further operations on it.
- The guard object, can not be