38 lines
862 B
Java
38 lines
862 B
Java
|
package org.simpleframework.xml.strategy;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
class Reference 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 true;
|
||
|
}
|
||
|
|
||
|
public Reference(Object obj, Class cls) {
|
||
|
this.value = obj;
|
||
|
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;
|
||
|
}
|
||
|
}
|