Package main.utils.ui
Class UserTypeGetter
java.lang.Object
main.utils.ui.UserTypeGetter
The
UserTypeGetter
class provides utility methods for obtaining different forms of user types.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getUserTypeInCamelCase
(User user) Returns the user type of the givenUser
object in camel case format.static String
getUserTypeInCamelCase
(UserType userType) Returns the givenUserType
in camel case format.static String
Returns the user type of the givenUser
object in uppercase format.static String
getUserTypeInCapitalLetters
(UserType userType) Returns the givenUserType
in uppercase format.static String
Returns the user type of the givenUser
object in lowercase format.static String
getUserTypeInSmallLetters
(UserType userType) Returns the givenUserType
in lowercase format.
-
Constructor Details
-
UserTypeGetter
public UserTypeGetter()
-
-
Method Details
-
getUserTypeInCamelCase
Returns the user type of the givenUser
object in camel case format.- Parameters:
user
- AUser
object representing the user whose type is to be obtained.- Returns:
- A
String
object representing the user type in camel case format.
-
getUserTypeInSmallLetters
Returns the user type of the givenUser
object in lowercase format.- Parameters:
user
- AUser
object representing the user whose type is to be obtained.- Returns:
- A
String
object representing the user type in lowercase format.
-
getUserTypeInCapitalLetters
Returns the user type of the givenUser
object in uppercase format.- Parameters:
user
- AUser
object representing the user whose type is to be obtained.- Returns:
- A
String
object representing the user type in uppercase format.
-
getUserTypeInCamelCase
Returns the givenUserType
in camel case format.- Parameters:
userType
- AUserType
object representing the user type to be obtained.- Returns:
- A
String
object representing the user type in camel case format.
-
getUserTypeInSmallLetters
Returns the givenUserType
in lowercase format.- Parameters:
userType
- AUserType
object representing the user type to be obtained.- Returns:
- A
String
object representing the user type in lowercase format.
-
getUserTypeInCapitalLetters
Returns the givenUserType
in uppercase format.- Parameters:
userType
- AUserType
object representing the user type to be obtained.- Returns:
- A
String
object representing the user type in uppercase format.
-