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

23 lines
563 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
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;
}
}