Annotation Type InternedDistinct


  • @Documented
    @Retention(RUNTIME)
    @Target({TYPE_USE,TYPE_PARAMETER})
    @SubtypeOf(Interned.class)
    @DefaultFor(LOWER_BOUND)
    public @interface InternedDistinct
    Indicates that no other value is equals() to the given value. Therefore, it is correct to use == to test an InternedDistinct value for equality against any other value.

    This is a stronger property than Interned, but a weaker property than every value of a Java type being interned.

    This annotation is trusted, not verified.

    See Also:
    InterningChecker
    See the Checker Framework Manual:
    Interning Checker