4A Server -
2.0
Main Page
Packages
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Enumerator
ExactMethod.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: ExactMethod.java
6
* Description: Exact compare method
7
*/
8
9
/**
10
* @file ExactMethod.java
11
*
12
* @brief Exact compare method
13
*/
14
15
package
cz.vutbr.fit.knot.annotations.fragmentUpdater.compareMethods;
16
17
/**
18
* Exact compare method
19
*
20
* @brief Exact compare method
21
* @author Michael Angelov
22
*/
23
public
class
ExactMethod
extends
CompareMethod
{
24
25
/**
26
* Exact compare method using String.equals() method
27
*
28
* @param first first string to compare
29
* @param second second string to compare
30
* @return true if strings match, false if don't
31
*/
32
@Override
33
public
boolean
compare
(String first, String second) {
34
if
(first.equals(second)) {
35
return
true
;
36
}
else
{
37
return
false
;
38
}
39
}
40
41
/**
42
* Overriden toString() method
43
*
44
* @return string representation of class
45
*/
46
@Override
47
public
String
toString
() {
48
return
"Exact"
;
49
}
50
}
// class ExactMethod
cz.vutbr.fit.knot.annotations.fragmentUpdater.compareMethods.CompareMethod
Generic abstract class for compare methods.
Definition:
CompareMethod.java:28
cz.vutbr.fit.knot.annotations.fragmentUpdater.compareMethods.ExactMethod.toString
String toString()
Definition:
ExactMethod.java:47
cz.vutbr.fit.knot.annotations.fragmentUpdater.compareMethods.ExactMethod
Exact compare method.
Definition:
ExactMethod.java:23
cz.vutbr.fit.knot.annotations.fragmentUpdater.compareMethods.ExactMethod.compare
boolean compare(String first, String second)
Definition:
ExactMethod.java:33
src
java
cz
vutbr
fit
knot
annotations
fragmentUpdater
compareMethods
ExactMethod.java
Generated on Wed Aug 24 2016 14:10:34 for 4A Server - by
1.8.6