/** * Compare field to this and return < > or = (-,+,0). * @return The compare value. */ public int compareTo(Field field) { if (field instanceof BaseField) if (!this.isSameType((BaseField)field)) return super.compareTo(field); int long1 = Integer.MIN_VALUE, long2 = Integer.MIN_VALUE; Integer tempLong = (Integer)this.getData(); // Get the physical data if (tempLong != null) long1 = tempLong.intValue(); tempLong = (Integer)field.getData(); // Get the physical data if (tempLong != null) long2 = tempLong.intValue(); if (long1 == long2) return 0; if (long1 < long2) return -1; else return 1; } /**
/** * Compare field to this and return < > or = (-,+,0). * @return The compare value. */ public int compareTo(Field field) { if (field instanceof BaseField) if (!this.isSameType((BaseField)field)) return super.compareTo(field); int long1 = Integer.MIN_VALUE, long2 = Integer.MIN_VALUE; Integer tempLong = (Integer)this.getData(); // Get the physical data if (tempLong != null) long1 = tempLong.intValue(); tempLong = (Integer)field.getData(); // Get the physical data if (tempLong != null) long2 = tempLong.intValue(); if (long1 == long2) return 0; if (long1 < long2) return -1; else return 1; } /**
/** * Compare field to this and return < > or = (-,+,0). * @return The compare value. */ public int compareTo(Field field) { if (field instanceof BaseField) if (!this.isSameType((BaseField)field)) return super.compareTo(field); int long1 = Integer.MIN_VALUE, long2 = Integer.MIN_VALUE; Integer tempLong = (Integer)this.getData(); // Get the physical data if (tempLong != null) long1 = tempLong.intValue(); tempLong = (Integer)field.getData(); // Get the physical data if (tempLong != null) long2 = tempLong.intValue(); if (long1 == long2) return 0; if (long1 < long2) return -1; else return 1; } /**