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

37 lines
828 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package org.simpleframework.xml.strategy;
/* loaded from: classes.dex */
class ObjectValue implements Value {
private Class type;
private Object value;
@Override // org.simpleframework.xml.strategy.Value
public int getLength() {
return 0;
}
@Override // org.simpleframework.xml.strategy.Value
public boolean isReference() {
return false;
}
public ObjectValue(Class cls) {
this.type = cls;
}
@Override // org.simpleframework.xml.strategy.Value
public void setValue(Object obj) {
this.value = obj;
}
@Override // org.simpleframework.xml.strategy.Value
public Object getValue() {
return this.value;
}
@Override // org.simpleframework.xml.strategy.Value
public Class getType() {
return this.type;
}
}