Class StrictYamlMapping

  • All Implemented Interfaces:
    YamlMapping, YamlNode, Comparable<YamlNode>

    @Deprecated
    public final class StrictYamlMapping
    extends BaseYamlMapping
    Deprecated.
    This class will be moved to the extensions package in one of the future releases. There will be no changes to it other than a more suitable package.
    Decorator for a YamlMapping which throws YamlNodenotFoundException, instead of returning null, if a given key doesn't exist in the mapping, or if it points to a different type of node than the demanded one.

    It is based on the fail-fast and null-is-bad idea
    see here: http://www.yegor256.com/2014/05/13/why-null-is-bad.html
    Since:
    1.0.0
    Version:
    $Id: 31dd44906ab8f91053b0c35c9ffa0f2f40a101a5 $
    Author:
    Mihai Andronache (amihaiemil@gmail.com)