Class ConstructYamlCoreInt

  • All Implemented Interfaces:
    ConstructNode

    public class ConstructYamlCoreInt
    extends ConstructScalar
    Create instances for numbers (Integer, Long, BigInteger)
    • Constructor Detail

      • ConstructYamlCoreInt

        public ConstructYamlCoreInt()
    • Method Detail

      • createLongOrBigInteger

        protected static Number createLongOrBigInteger​(String number,
                                                       int radix)
      • construct

        public Object construct​(org.snakeyaml.engine.v2.nodes.Node node)
        Description copied from interface: ConstructNode
        Construct a Java instance with all the properties injected when it is possible.
        Parameters:
        node - composed Node
        Returns:
        a complete Java instance or empty collection instance if it is recursive
      • createIntNumber

        public Object createIntNumber​(String value)