Files
jimu-decompiled/sources/com/ubt/jimu/blockly/feature/blockly/Light.java
2025-05-13 19:24:51 +02:00

46 lines
1.2 KiB
Java

package com.ubt.jimu.blockly.feature.blockly;
import java.util.List;
import java.util.Objects;
/* loaded from: classes.dex */
public class Light {
private int id;
private List<String> lights;
public boolean equals(Object obj) {
if (obj != null && (obj instanceof Light)) {
Light light = (Light) obj;
if (this.id != light.id) {
return false;
}
if (this.lights == null && light.lights == null) {
return true;
}
List<String> list = this.lights;
if (list == null || light.lights == null || list.size() != light.lights.size()) {
return false;
}
for (int i = 0; i < this.lights.size(); i++) {
if (!this.lights.get(i).toLowerCase().equals(light.lights.get(i).toLowerCase())) {
return false;
}
}
return true;
}
return false;
}
public int getId() {
return this.id;
}
public List<String> getLights() {
return this.lights;
}
public int hashCode() {
return Objects.hash(Integer.valueOf(this.id), this.lights);
}
}