Class JsonFormat.Encoder

    • Method Detail

      • entry

        public void entry​(int idx,
                          Inspector inspector)
        Description copied from interface: ArrayTraverser
        Callback function to implement.
        Specified by:
        entry in interface ArrayTraverser
        Parameters:
        idx - array index for the current array entry.
        inspector - accessor for the current array entry's value.
      • field

        public void field​(String name,
                          Inspector inspector)
        Description copied from interface: ObjectTraverser
        Callback function to implement.
        Specified by:
        field in interface ObjectTraverser
        Parameters:
        name - symbol name for the current field.
        inspector - accessor for the current field's value.