4A Server -  2.0
 All Classes Namespaces Files Functions Variables Enumerator
CompareMethod.java
Go to the documentation of this file.
1 /*
2  * Project: Server for annotations sharing
3  * Subproject: Position of fragment of text in XML document
4  * Authors: Michael Angelov
5  * File: CompareMethod.java
6  * Description: Generic abstract class for compare methods
7  */
8 
9 /**
10  * @file CompareMethod.java
11  *
12  * @brief Generic abstract class for compare methods
13  */
14 
15 /**
16  * @package cz.vutbr.fit.knot.annotations.fragmentUpdater.compareMethods
17  *
18  * @brief Compare methods for comparing strings
19  */
20 package cz.vutbr.fit.knot.annotations.fragmentUpdater.compareMethods;
21 
22 /**
23  * Generic abstract class for compare methods
24  *
25  * @brief Generic abstract class for compare methods
26  * @author Michael Angelov
27  */
28 public abstract class CompareMethod {
29  /**
30  * Generic compare method
31  *
32  * @param first first string to compare
33  * @param second second string to compare
34  * @return true if strings match, false if don't
35  */
36  public abstract boolean compare(String first, String second);
37 }