1 package net.avcompris.commons3.yaml; 2 3 import java.util.Date; 4 5 public interface Yaml { 6 7 Iterable<Object> keys(); 8 9 /** 10 * Keys are returned sorted. 11 */ 12 Iterable<String> keysAsStrings(); 13 14 Iterable<Yaml> items(); 15 16 boolean has(Object key); 17 18 Yaml get(Object key); 19 20 String asString(); 21 22 int asInt(); 23 24 long asLong(); 25 26 boolean asBoolean(); 27 28 Date asDate(); 29 30 boolean isBoolean(); 31 32 boolean isString(); 33 34 boolean isInt(); 35 36 boolean isArray(); 37 38 boolean isMap(); 39 }