public YamlCollection getArray(String key){ List list = get(key); return null == list ? null : new YamlCollection(list); }
@SuppressWarnings({ "rawtypes", "unchecked" }) static YamlValue of(Object raw) { if(null == raw) { return NULL; } if(raw instanceof YamlValue){ return (YamlValue)raw; } if(raw instanceof Map) { return new YamlObject((Map)raw); } if(raw instanceof List) { return new YamlCollection((List)raw); } return new YamlScalar(raw); }
public YamlObject getObject(int i){ Map map = get(i); return null == map ? null : new YamlObject(map); }
public YamlObject getObject(String key){ Map map = get(key); return null == map ? null : new YamlObject(map); }
public YamlCollection getArray(int i){ List list = get(i); return null == list ? null : new YamlCollection(list); }
public Long getLong(String key,Long defaultValue){ Long l = get(key); return null == l ? defaultValue : l; }
public Double getDouble(int i){ return get(i); }
public YamlException (String message, Throwable cause) { super(message); initCause(cause); } }
/** * Returns <code>true</code> if the raw value is <code>null</code> */ default boolean isNull() { return null == raw(); }
public Integer getInteger(String key,Integer defaultValue){ Integer i = get(key); return null == i ? defaultValue : i; }
public Boolean getBoolean(int i){ return get(i); }
public YamlException (Throwable cause) { initCause(cause); }
public Float getFloat(String key,Float defaultValue){ Float f = get(key); return null == f ? defaultValue : f; }
public Float getFloat(int i){ return get(i); }
public Boolean getBoolean(String key,Boolean defaultValue){ Boolean b = get(key); return null == b ? defaultValue : b; }