Class JSONUserFormatter


  • public class JSONUserFormatter
    extends java.lang.Object
    A formatter that knows how to format a user in JSON
    Author:
    Daniela Butano
    • Constructor Summary

      Constructors 
      Constructor Description
      JSONUserFormatter​(Profile profile)
      Construct a user formatter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> format()
      Format a user into a map.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JSONUserFormatter

        public JSONUserFormatter​(Profile profile)
        Construct a user formatter.
        Parameters:
        profile - The current user.
    • Method Detail

      • format

        public java.util.Map<java.lang.String,​java.lang.Object> format()
        Format a user into a map.
        Returns:
        A map