Enum Class FriendshipStatus
- All Implemented Interfaces:
Serializable,Comparable<FriendshipStatus>,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe friendship request has been accepted; both athletes are now connected as friends.One athlete has blocked the other, preventing any further communication or interaction.The friendship request has been sent but not yet responded to by the recipient.The friendship request has been explicitly declined by the recipient. -
Method Summary
Modifier and TypeMethodDescriptionstatic FriendshipStatusReturns the enum constant of this class with the specified name.static FriendshipStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PENDING
The friendship request has been sent but not yet responded to by the recipient. -
ACCEPTED
The friendship request has been accepted; both athletes are now connected as friends. -
REJECTED
The friendship request has been explicitly declined by the recipient. -
BLOCKED
One athlete has blocked the other, preventing any further communication or interaction.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-