Beispiel #1
0
 public boolean isAfter(CellValueRecordInterface i) {
   if (this.getRow() < i.getRow()) {
     return false;
   }
   if ((this.getRow() == i.getRow()) && (this.getColumn() < i.getColumn())) {
     return false;
   }
   if ((this.getRow() == i.getRow()) && (this.getColumn() == i.getColumn())) {
     return false;
   }
   return true;
 }
Beispiel #2
0
  public boolean equals(Object obj) {
    if (!(obj instanceof CellValueRecordInterface)) {
      return false;
    }
    CellValueRecordInterface loc = (CellValueRecordInterface) obj;

    if ((this.getRow() == loc.getRow()) && (this.getColumn() == loc.getColumn())) {
      return true;
    }
    return false;
  }
Beispiel #3
0
  public int compareTo(Object obj) {
    CellValueRecordInterface loc = (CellValueRecordInterface) obj;

    if ((this.getRow() == loc.getRow()) && (this.getColumn() == loc.getColumn())) {
      return 0;
    }
    if (this.getRow() < loc.getRow()) {
      return -1;
    }
    if (this.getRow() > loc.getRow()) {
      return 1;
    }
    if (this.getColumn() < loc.getColumn()) {
      return -1;
    }
    if (this.getColumn() > loc.getColumn()) {
      return 1;
    }
    return -1;
  }
Beispiel #4
0
 public boolean isEqual(CellValueRecordInterface i) {
   return ((this.getRow() == i.getRow()) && (this.getColumn() == i.getColumn()));
 }