Example usage for opennlp.tools.util Span equals

List of usage examples for opennlp.tools.util Span equals

Introduction

In this page you can find the example usage for opennlp.tools.util Span equals.

Prototype

@Override
public boolean equals(Object o) 

Source Link

Document

Checks if the specified span is equal to the current span.

Usage

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);
    }