Interface IWarnEntry
- All Known Implementing Classes:
WarnEntry
public interface IWarnEntry
The IWarnEntry interface represents a warning entry.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a warning to the warn entry.name()
Returns the name of the warning entry.boolean
removeWarn
(int id) Removes a warning with the specified ID.uuid()
Generates a new UUID.warns()
Retrieves the list of warn entries.
-
Method Details
-
uuid
UUID uuid()Generates a new UUID.- Returns:
- The generated UUID.
-
name
String name()Returns the name of the warning entry.- Returns:
- the name of the warning entry
-
warns
Retrieves the list of warn entries.- Returns:
- the list of warn entries
-
addWarn
Adds a warning to the warn entry.- Parameters:
warn
- the warning to be added
-
removeWarn
boolean removeWarn(int id) Removes a warning with the specified ID.- Parameters:
id
- the ID of the warning to remove- Returns:
- true if the warning is successfully removed, false otherwise
-