Class TestBounds

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


    public class TestBounds
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      TestBounds​()  
      TestBounds​(java.lang.String id)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      <D,C extends io.annot8.core.data.Content<D>,R>
      java.util.Optional<R>
      getData​(C content, java.lang.Class<R> requiredClass)  
      java.lang.String getId​()  
      int hashCode​()  
      <D,C extends io.annot8.core.data.Content<D>>
      boolean
      isValid​(C content)  
      • Methods inherited from interface io.annot8.core.bounds.Bounds

        getData
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestBounds

        public TestBounds​()
      • TestBounds

        public TestBounds​(java.lang.String id)
    • Method Detail

      • getData

        public <D,C extends io.annot8.core.data.Content<D>,R> java.util.Optional<R> getData​(C content,
                                                                                            java.lang.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 java.lang.Object
      • getId

        public java.lang.String getId​()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object