Class TestBounds

  • All Implemented Interfaces:
    io.annot8.core.bounds.Bounds

    public class TestBounds
    extends Object
    implements io.annot8.core.bounds.Bounds
    Test Bounds

    The id is use for uniqueness (is boundsA == boundsB), but it has no meaning itself within Annot8

    • Constructor Detail

      • TestBounds

        public TestBounds()
      • TestBounds

        public TestBounds​(String id)
    • Method Detail

      • getData

        public <D,C extends io.annot8.core.data.Content<D>,R> Optional<R> getData​(C content,
                                                                                  Class<R> requiredClass)
        Specified by:
        getData in interface io.annot8.core.bounds.Bounds
      • isValid

        public <D,C extends io.annot8.core.data.Content<D>> boolean isValid​(C content)
        Specified by:
        isValid in interface io.annot8.core.bounds.Bounds
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getId

        public String getId()