Class AvatarGenerator

java.lang.Object
com.datengaertnerei.test.dataservice.avatar.AvatarGenerator
All Implemented Interfaces:
IAvatarGenerator

@Service public class AvatarGenerator extends Object implements IAvatarGenerator
Generates random avatar images
  • Constructor Details

    • AvatarGenerator

      public AvatarGenerator()
      ctor
  • Method Details

    • getAvatar

      public byte[] getAvatar(boolean female)
      Specified by:
      getAvatar in interface IAvatarGenerator
      Parameters:
      female - female or not (male)
      Returns:
      PNG image as byte array