mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-12-01 02:03:24 +01:00
59 lines
1.5 KiB
Java
59 lines
1.5 KiB
Java
package androidx.constraintlayout.solver.widgets;
|
|
|
|
import java.util.HashSet;
|
|
import java.util.Iterator;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes13.dex */
|
|
public class ResolutionNode {
|
|
public static final int REMOVED = 2;
|
|
public static final int RESOLVED = 1;
|
|
public static final int UNRESOLVED = 0;
|
|
HashSet<ResolutionNode> dependents = new HashSet<>(2);
|
|
int state = 0;
|
|
|
|
public void addDependent(ResolutionNode resolutionNode) {
|
|
this.dependents.add(resolutionNode);
|
|
}
|
|
|
|
public void didResolve() {
|
|
this.state = 1;
|
|
Iterator<ResolutionNode> it2 = this.dependents.iterator();
|
|
while (it2.hasNext()) {
|
|
it2.next().resolve();
|
|
}
|
|
}
|
|
|
|
public void invalidate() {
|
|
this.state = 0;
|
|
Iterator<ResolutionNode> it2 = this.dependents.iterator();
|
|
while (it2.hasNext()) {
|
|
it2.next().invalidate();
|
|
}
|
|
}
|
|
|
|
public void invalidateAnchors() {
|
|
if (this instanceof ResolutionAnchor) {
|
|
this.state = 0;
|
|
}
|
|
Iterator<ResolutionNode> it2 = this.dependents.iterator();
|
|
while (it2.hasNext()) {
|
|
it2.next().invalidateAnchors();
|
|
}
|
|
}
|
|
|
|
public boolean isResolved() {
|
|
return this.state == 1;
|
|
}
|
|
|
|
public void reset() {
|
|
this.state = 0;
|
|
this.dependents.clear();
|
|
}
|
|
|
|
public void resolve() {
|
|
}
|
|
|
|
public void remove(ResolutionDimension resolutionDimension) {
|
|
}
|
|
}
|