Interface Annotation

    • Method Detail

      • getBounds

        Bounds getBounds​()
        Get the Bounds associated with this annotation
        Returns:
        the bounds
      • getBounds

        default <B extends BoundsOptional<B> getBounds​(Class<B> boundsClass)
        Get the Bounds associated with this annotation casting it to the bounds provided (if it is of that type / subtype).
        Parameters:
        boundsClass - the class the bounds should have
        Returns:
        optional bounds of requested class, empty if the bounds are not of that class
      • getContentId

        String getContentId​()
        Get the id of the Content to which this annotation refers
        Returns:
        content id
      • sameAnnotation

        default boolean sameAnnotation​(Annotation other)
        Do two instances represent the same underlying annotations?

        That is do they have the same id, even if the rest of the data is different.

        Parameters:
        other - the annotation to test against
        Returns:
        true is non-null and have the same id