Class Role

    • Method Detail

      • of

        public static Role of​(String name)
        Creates a new Role instance with the given name.
        Parameters:
        name - the name of the Role, must not be null or empty.
      • getName

        @NonNull
        public @NonNull String getName()
        The name of the role.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object