Class CLObject

  • All Implemented Interfaces:
    java.lang.Iterable<CLKey>

    public class CLObject
    extends CLContainer
    implements java.lang.Iterable<CLKey>
    • Constructor Detail

      • CLObject

        public CLObject​(char[] content)
    • Method Detail

      • allocate

        public static CLObject allocate​(char[] content)
        Allocate a CLObject around an array of chars
      • toJSON

        public java.lang.String toJSON()
        Returns objet as a JSON5 String
        Overrides:
        toJSON in class CLElement
      • toFormattedJSON

        public java.lang.String toFormattedJSON()
        Returns a object as a formatted JSON5 String
      • toFormattedJSON

        public java.lang.String toFormattedJSON​(int indent,
                                                int forceIndent)
        Returns as a formatted JSON5 String with an indentation
        Overrides:
        toFormattedJSON in class CLElement
      • iterator

        public java.util.Iterator<CLKey> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<CLKey>