import ResultPoint from '../../ResultPoint' ; export default class FinderPattern { private resultPoints : Array < ResultPoint > ; public constructor ( private value , private startEnd , start , end , rowNumber ) { this . value = value ; this . startEnd = startEnd ; this . resultPoints = new Array < ResultPoint > ( ) ; this . resultPoints . push ( new ResultPoint ( start , rowNumber ) ) ; this . resultPoints . push ( new ResultPoint ( end , rowNumber ) ) ; } public getValue ( ) { return this . value ; } public getStartEnd ( ) { return this . startEnd ; } public getResultPoints ( ) { return this . resultPoints ; } public equals ( o ) { if ( ! ( o instanceof FinderPattern ) ) { return false ; } const that = < FinderPattern > o ; return this . value === that . value ; } public hashCode ( ) { return this . value ; } }