Class YAMLMapping

java.lang.Object
net.pwall.util.ListMap<String,V>
net.pwall.json.JSONMapping<YAMLNode>
net.pwall.yaml.YAMLMapping
All Implemented Interfaces:
Serializable, Iterable<String>, Map<String,YAMLNode>, net.pwall.json.JSONComposite, net.pwall.json.JSONValue, YAMLNode

public class YAMLMapping extends net.pwall.json.JSONMapping<YAMLNode> implements YAMLNode
A YAML mapping.
Author:
Peter Wall
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.pwall.util.ListMap

    net.pwall.util.ListMap.Entry<KK extends Object,VV extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class net.pwall.util.ListMap

    list
  • Constructor Summary

    Constructors
    Constructor
    Description
    Construct a YAMLMapping with the given Map and the default tag.
    Construct a YAMLMapping with the given Map and tag.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
    Get the tag of the node.
    int
     

    Methods inherited from class net.pwall.json.JSONMapping

    appendJSON, getArray, getBoolean, getDecimal, getDouble, getFloat, getInt, getLong, getObject, getString, isSimple, iterator, toSimpleValue, toString

    Methods inherited from class net.pwall.util.ListMap

    clear, containsKey, containsValue, entrySet, findIndex, get, getEntry, isEmpty, keySet, put, putAll, remove, size, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator

    Methods inherited from interface net.pwall.json.JSONValue

    appendJSON, toJSON, toSimpleValue
  • Field Details

  • Constructor Details

    • YAMLMapping

      public YAMLMapping(Map<String,YAMLNode> map, String tag)
      Construct a YAMLMapping with the given Map and tag.
      Parameters:
      map - the map
      tag - the tag
    • YAMLMapping

      public YAMLMapping(Map<String,YAMLNode> map)
      Construct a YAMLMapping with the given Map and the default tag.
      Parameters:
      map - the map
  • Method Details

    • getTag

      public String getTag()
      Description copied from interface: YAMLNode
      Get the tag of the node.
      Specified by:
      getTag in interface YAMLNode
      Returns:
      the tag
    • equals

      public boolean equals(Object other)
      Specified by:
      equals in interface Map<String,YAMLNode>
      Overrides:
      equals in class net.pwall.json.JSONMapping<YAMLNode>
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Map<String,YAMLNode>
      Overrides:
      hashCode in class net.pwall.json.JSONMapping<YAMLNode>