gpt4 book ai didi

com.obsidiandynamics.yconf.YObject.value()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-15 09:27:31 26 4
gpt4 key购买 nike

本文整理了Java中com.obsidiandynamics.yconf.YObject.value()方法的一些代码示例,展示了YObject.value()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YObject.value()方法的具体详情如下:
包路径:com.obsidiandynamics.yconf.YObject
类名称:YObject
方法名:value

YObject.value介绍

暂无

代码示例

代码示例来源:origin: com.obsidiandynamics.yconf/yconf-core

public <T> T map(Class<? extends T> type) { 
 return context.map(value(), type);
}

代码示例来源:origin: com.obsidiandynamics.yconf/yconf-core

public <T> T map(Class<? extends T> type, Class<? extends TypeMapper> mapperType) { 
 return context.map(value(), type, mapperType);
}

代码示例来源:origin: com.obsidiandynamics.yconf/yconf-juel

public Object link(String file) {
  try (Reader reader = new FileReader(file)) {
   final YObject y = localContext.get().fromReader(reader);
   return y.value();
  } catch (IOException e) {
   throw new LinkingException("Error reading from " + file, e);
  }
 }
}

代码示例来源:origin: com.obsidiandynamics.yconf/yconf-core

@Override
 public Object map(YObject y, Class<?> type) {
  if (y.is(coercedType)) {
   return y.value();
  } else {
   final String str = String.valueOf(y.<Object>value());
   try {
    return converter.convert(str);
   } catch (Throwable e) {
    throw new CoercionException(null, e);
   }
  }
 }
}

代码示例来源:origin: com.obsidiandynamics.yconf/yconf-core

public YObject getAttribute(String att) {
 checkNotNull();
 return new YObject(this.<Map<?, ?>>value().get(att), context);
}

代码示例来源:origin: com.obsidiandynamics.yconf/yconf-core

public <T> T mapAttribute(String att, Class<? extends T> type) {
 return context.map(getAttribute(att).value(), type);
}

代码示例来源:origin: com.obsidiandynamics.yconf/yconf-core

@Override
public Object map(YObject y, Class<?> type) {
 final Object val = y.value();
 final String typeVal;
 if (val instanceof Map) {
  return y.value();

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com