- java.lang.Object
-
- io.annot8.testing.testimpl.TestBounds
-
- All Implemented Interfaces:
io.annot8.core.bounds.Bounds
public class TestBounds extends Object implements io.annot8.core.bounds.Bounds
Test BoundsThe id is use for uniqueness (is boundsA == boundsB), but it has no meaning itself within Annot8
-
-
Constructor Summary
Constructors Constructor Description TestBounds()TestBounds(String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)<D,C extends io.annot8.core.data.Content<D>,R>
Optional<R>getData(C content, Class<R> requiredClass)StringgetId()inthashCode()<D,C extends io.annot8.core.data.Content<D>>
booleanisValid(C content)
-
-
-
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:
getDatain interfaceio.annot8.core.bounds.Bounds
-
isValid
public <D,C extends io.annot8.core.data.Content<D>> boolean isValid(C content)
- Specified by:
isValidin interfaceio.annot8.core.bounds.Bounds
-
getId
public String getId()
-
-