what-the-bank/sources/org/simpleframework/xml/strategy/WriteState.java

23 lines
563 B
Java

package org.simpleframework.xml.strategy;
import org.simpleframework.xml.util.WeakCache;
/* loaded from: classes6.dex */
class WriteState extends WeakCache<WriteGraph> {
private Contract contract;
public WriteState(Contract contract) {
this.contract = contract;
}
public WriteGraph find(Object obj) {
WriteGraph fetch = fetch(obj);
if (fetch != null) {
return fetch;
}
WriteGraph writeGraph = new WriteGraph(this.contract);
cache(obj, writeGraph);
return writeGraph;
}
}