Example #1
0
 @Override
 public boolean equals(Object other) {
   if ((this == other)) return true;
   if (!(other instanceof LocalItemLit)) return false;
   LocalItemLit castOther = (LocalItemLit) other;
   return new EqualsBuilder().append(this.getCodLit(), castOther.getCodLit()).isEquals();
 }
Example #2
0
  public int compareTo(LocalItemLit o) {

    if (getIdentificacaoLit().compareTo(o.getIdentificacaoLit()) < 0) {
      return -1;
    } else if (getIdentificacaoLit().compareTo(o.getIdentificacaoLit()) > 0) {
      return 1;
    } else {
      return 0;
    }
  }