package com.qianwen.core.tool.metadata; import com.qianwen.core.tool.utils.BeanUtil; /* JADX INFO: Access modifiers changed from: package-private */ public class SimpleValue implements Value { private Object nativeValue; private SimpleValue(final Object nativeValue) { this.nativeValue = nativeValue; } public static SimpleValue of(final Object nativeValue) { return new SimpleValue(nativeValue); } @Override public Object get() { return this.nativeValue; } @Override // org.springblade.core.tool.metadata.Value public T as(Class type) { if (this.nativeValue == null) { return null; } if (type.isInstance(this.nativeValue)) { return (T) this.nativeValue; } return (T) BeanUtil.copyWithConvert(this.nativeValue, type); } }