Interface IExpirableWithReplacement<DATATYPE>

  • Type Parameters:
    DATATYPE - The type of the object use for defining a replacement.
    All Superinterfaces:
    IExpirable
    All Known Subinterfaces:
    IMutableExpirableWithReplacement<DATATYPE>
    All Known Implementing Classes:
    ExpirableWithReplacement

    public interface IExpirableWithReplacement<DATATYPE>
    extends IExpirable
    Read-only interface for objects that can expire but offer a replacement once the object expires.
    Author:
    Philip Helger
    • Method Detail

      • getReplacement

        @Nullable
        DATATYPE getReplacement()
        In case the object has an expiration date defined and is expired, the object returned by this method directs to replacement object to be used instead.
        Returns:
        null if no replacement is defined, a non- null object otherwise.