Class ConstructYamlJsonInt

java.lang.Object
org.snakeyaml.engine.v2.constructor.ConstructScalar
org.snakeyaml.engine.v2.constructor.json.ConstructYamlJsonInt
All Implemented Interfaces:
ConstructNode

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

    • ConstructYamlJsonInt

      public ConstructYamlJsonInt()
  • Method Details

    • construct

      public Object construct(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

      protected Number createIntNumber(String number)
      Create number trying fist Integer, then Long, then BigInteger
      Parameters:
      number - - the source
      Returns:
      number that fits the source