Package main.utils.ui

Class UserTypeGetter

java.lang.Object
main.utils.ui.UserTypeGetter

public class UserTypeGetter extends Object
The UserTypeGetter class provides utility methods for obtaining different forms of user types.
  • Constructor Details

    • UserTypeGetter

      public UserTypeGetter()
  • Method Details

    • getUserTypeInCamelCase

      public static String getUserTypeInCamelCase(User user)
      Returns the user type of the given User object in camel case format.
      Parameters:
      user - A User object representing the user whose type is to be obtained.
      Returns:
      A String object representing the user type in camel case format.
    • getUserTypeInSmallLetters

      public static String getUserTypeInSmallLetters(User user)
      Returns the user type of the given User object in lowercase format.
      Parameters:
      user - A User object representing the user whose type is to be obtained.
      Returns:
      A String object representing the user type in lowercase format.
    • getUserTypeInCapitalLetters

      public static String getUserTypeInCapitalLetters(User user)
      Returns the user type of the given User object in uppercase format.
      Parameters:
      user - A User object representing the user whose type is to be obtained.
      Returns:
      A String object representing the user type in uppercase format.
    • getUserTypeInCamelCase

      public static String getUserTypeInCamelCase(UserType userType)
      Returns the given UserType in camel case format.
      Parameters:
      userType - A UserType object representing the user type to be obtained.
      Returns:
      A String object representing the user type in camel case format.
    • getUserTypeInSmallLetters

      public static String getUserTypeInSmallLetters(UserType userType)
      Returns the given UserType in lowercase format.
      Parameters:
      userType - A UserType object representing the user type to be obtained.
      Returns:
      A String object representing the user type in lowercase format.
    • getUserTypeInCapitalLetters

      public static String getUserTypeInCapitalLetters(UserType userType)
      Returns the given UserType in uppercase format.
      Parameters:
      userType - A UserType object representing the user type to be obtained.
      Returns:
      A String object representing the user type in uppercase format.