|
|
@@ -58,6 +58,7 @@ public class SingleSelector<T> {
|
|
|
*
|
|
|
* @param trigger
|
|
|
*/
|
|
|
+ @SuppressWarnings("PMD.CompareObjectsWithEquals")
|
|
|
public void check(T trigger, boolean isTriggerChecked) {
|
|
|
// 리스트에 속한 박스라면 다른 박스를 해제 시킨다.
|
|
|
if (boxes.indexOf(trigger) > -1) {
|
|
|
@@ -78,6 +79,7 @@ public class SingleSelector<T> {
|
|
|
*
|
|
|
* @param box
|
|
|
*/
|
|
|
+ @SuppressWarnings("PMD.CompareObjectsWithEquals")
|
|
|
public void uncheck(T box) {
|
|
|
if (boxes.indexOf(box) > -1) {
|
|
|
List<T> list = new ArrayList<>();
|
|
|
@@ -109,6 +111,7 @@ public class SingleSelector<T> {
|
|
|
|
|
|
public interface Listener<T> {
|
|
|
void onChecked(T trigger, boolean isTriggerChecked, List<T> unchecked);
|
|
|
+
|
|
|
void onUnchecked(List<T> unchecked);
|
|
|
}
|
|
|
}
|