blob: 06e73874a4c6c7dfea9fa1aec7a36b35b8e27132 [file] [log] [blame]
// Copyright (C) 2014 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.googlesource.gerrit.plugins.reviewers;
import java.util.Objects;
import java.util.Set;
class ReviewerFilterSection {
private final String filter;
private final Set<String> reviewers;
ReviewerFilterSection(String filter, Set<String> reviewers) {
this.filter = filter;
this.reviewers = reviewers;
}
String getFilter() {
return filter;
}
Set<String> getReviewers() {
return reviewers;
}
@Override
public boolean equals(Object o) {
if (o instanceof ReviewerFilterSection) {
ReviewerFilterSection other = ((ReviewerFilterSection) o);
return Objects.equals(filter, other.filter) && Objects.equals(reviewers, other.reviewers);
}
return false;
}
@Override
public int hashCode() {
return Objects.hash(filter, reviewers);
}
}