Class UserIdentifier

java.lang.Object
me.lucko.luckperms.common.model.UserIdentifier

public final class UserIdentifier extends Object
Used to identify a specific User.
  • Method Details

    • of

      public static UserIdentifier of(@NonNull UUID uniqueId, @Nullable String username)
      Creates a UserIdentifier.
      Parameters:
      uniqueId - the uuid of the user
      username - the username of the user, nullable
      Returns:
      a new identifier
    • getUniqueId

      public UUID getUniqueId()
    • getUsername

      public Optional<String> getUsername()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object