01: // You can redistribute this software and/or modify it under the terms of
02: // the Ozone Library License version 1 published by ozone-db.org.
03: //
04: // The original code and portions created by SMB are
05: // Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
06: //
07: // $Id: DxStringComparator.java,v 1.1 2001/12/18 10:31:30 per_nyfelt Exp $
08:
09: package org.ozoneDB.DxLib;
10:
11: import java.io.*;
12:
13: /**
14: * @author <a href="http://www.softwarebuero.de/">SMB</a>
15: * @version $Revision: 1.1 $Date: 2001/12/18 10:31:30 $
16: */
17: public final class DxStringComparator extends DxComparator {
18:
19: final static long serialVersionUID = 1L;
20:
21: /** */
22: public boolean compareEquals(Object obj1, Object obj2) {
23: return ((String) obj1).compareTo((String) obj2) == 0;
24: }
25:
26: /** */
27: public boolean compareIsLess(Object obj1, Object obj2) {
28: return ((String) obj1).compareTo((String) obj2) < 0;
29: }
30: }
|