This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use hibernate search in GetTransUnitListHandler
- Loading branch information
Patrick Huang
committed
Jun 28, 2012
1 parent
d6f80e0
commit 722b5d8
Showing
10 changed files
with
392 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
zanata-war/src/main/java/org/zanata/util/HTextFlowPosComparator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.zanata.util; | ||
|
||
import java.util.Comparator; | ||
|
||
import org.zanata.model.HTextFlow; | ||
|
||
/** | ||
* @author Patrick Huang <a href="mailto:pahuang@redhat.com">pahuang@redhat.com</a> | ||
*/ | ||
public enum HTextFlowPosComparator implements Comparator<HTextFlow> | ||
{ | ||
INSTANCE; | ||
|
||
@Override | ||
public int compare(HTextFlow one, HTextFlow other) | ||
{ | ||
return one.getPos().compareTo(other.getPos()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.