1 21 22 package org.apache.derby.impl.store.access; 23 24 import org.apache.derby.iapi.services.sanity.SanityManager; 25 import org.apache.derby.iapi.types.DataValueDescriptor; 26 import org.apache.derby.iapi.types.UserType; 27 28 34 35 public class UTF extends UserType 36 { 37 public UTF() 38 { 39 } 40 41 public UTF(String value) 42 { 43 super(value); 44 } 45 46 49 50 public int compare(DataValueDescriptor other) 51 { 52 if (SanityManager.DEBUG) 53 SanityManager.ASSERT(other instanceof UTF); 54 55 UTF arg = (UTF) other; 56 57 return ((String ) getObject()).compareTo((String ) arg.getObject()); 58 59 } 60 } 61 | Popular Tags |