1 7 package com.ibm.icu.text; 8 9 import com.ibm.icu.util.ByteArrayWrapper; 10 11 41 public final class RawCollationKey extends ByteArrayWrapper 42 { 43 45 49 public RawCollationKey() 50 { 51 } 52 53 59 public RawCollationKey(int capacity) 60 { 61 bytes = new byte[capacity]; 62 } 63 64 70 public RawCollationKey(byte[] bytes) 71 { 72 this.bytes = bytes; 73 } 74 75 83 public RawCollationKey(byte[] bytesToAdopt, int size) 84 { 85 super(bytesToAdopt, size); 86 } 87 88 98 public int compareTo(Object rhs) { 99 int result = super.compareTo((RawCollationKey)rhs); 100 return result < 0 ? -1 : result == 0 ? 0 : 1; 101 } 102 } 103 | Popular Tags |