Enum Class FriendshipStatus

java.lang.Object
java.lang.Enum<FriendshipStatus>
fr.utc.miage.sporttrack.entity.enumeration.FriendshipStatus
All Implemented Interfaces:
Serializable, Comparable<FriendshipStatus>, Constable

public enum FriendshipStatus extends Enum<FriendshipStatus>
Enumeration representing the possible statuses of a friendship relationship between two athletes within the SportTrack application.

Each status reflects a distinct stage in the friendship lifecycle, from the initial request through to acceptance, rejection, or blocking.

Author:
SportTrack Team
  • Enum Constant Details

    • PENDING

      public static final FriendshipStatus PENDING
      The friendship request has been sent but not yet responded to by the recipient.
    • ACCEPTED

      public static final FriendshipStatus ACCEPTED
      The friendship request has been accepted; both athletes are now connected as friends.
    • REJECTED

      public static final FriendshipStatus REJECTED
      The friendship request has been explicitly declined by the recipient.
    • BLOCKED

      public static final FriendshipStatus BLOCKED
      One athlete has blocked the other, preventing any further communication or interaction.
  • Method Details

    • values

      public static FriendshipStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FriendshipStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null