List of usage examples for opennlp.tools.util Span equals
@Override public boolean equals(Object o)
From source file:opennlp.tools.util.Span.java
/** * Test for {@link Span#equals(Object)}. *//* ww w . j a va 2 s .co m*/ public void testEqualsWithNull() { Span a = new Span(0, 0); Assert.assertEquals(a.equals(null), false); }
From source file:opennlp.tools.util.Span.java
/** * Test for {@link Span#equals(Object)}. *//* w w w . java 2 s. c o m*/ public void testEquals() { Span a = new Span(100, 1000); Span b = new Span(100, 1000); Assert.assertEquals(a.equals(b), true); }