package com.qianwen.core.tool.metadata; import com.qianwen.core.tool.utils.BeanUtil; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: blade-core-tool-9.3.0.0-SNAPSHOT.jar:org/springblade/core/tool/metadata/SimpleValue.class */ 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 // org.springblade.core.tool.metadata.Value 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); } }