コード例 #1
0
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    IndexShardRoutingTable that = (IndexShardRoutingTable) o;

    if (primaryAllocatedPostApi != that.primaryAllocatedPostApi) return false;
    if (!shardId.equals(that.shardId)) return false;
    if (!shards.equals(that.shards)) return false;

    return true;
  }
コード例 #2
0
 @Override
 public boolean equals(Object o) {
   if (this == o) return true;
   ShardIterator that = (ShardIterator) o;
   return shardId.equals(that.shardId());
 }