- All Superinterfaces:
- All Known Subinterfaces:
- All Known Implementing Classes:
@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.
Nested Class Summary
Nested Classes Modifier and Type Interface Description
Guarded.EnsureThatGuarded checking utility.
Guarded.NewCreate new guard object.
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
getGuardObject()Gets the guard object associated to the generated descriptors/utilities.
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