コード例 #1
0
  @Override
  public boolean equals(Object o) {
    if (!(o instanceof Movement)) {
      return false;
    }

    Movement movement = (Movement) o;

    return getId() == movement.getId();
  }
コード例 #2
0
 @Override
 public int compareTo(@NonNull Movement movement) {
   return when.compareTo(movement.getWhen());
 }