discord-jadx/app/src/main/java/com/esotericsoftware/kryo/serializers/GenericsResolver.java

33 lines
830 B
Java
Raw Normal View History

2021-06-27 20:44:35 +00:00
package com.esotericsoftware.kryo.serializers;
import c.e.a.a;
import java.util.Iterator;
import java.util.LinkedList;
public final class GenericsResolver {
private LinkedList<Generics> stack = new LinkedList<>();
public Class getConcreteClass(String str) {
Iterator<Generics> it = this.stack.iterator();
while (it.hasNext()) {
Class concreteClass = it.next().getConcreteClass(str);
if (concreteClass != null) {
return concreteClass;
}
}
return null;
}
public boolean isSet() {
return !this.stack.isEmpty();
}
public void popScope() {
this.stack.removeFirst();
}
public void pushScope(Class cls, Generics generics) {
2021-07-13 20:23:20 +00:00
a.C0053a aVar = a.a;
2021-06-27 20:44:35 +00:00
this.stack.addFirst(generics);
}
}