- All Implemented Interfaces:
Serializable,Comparable<CrimeCategory>,Constable
Represents the various categories of crimes handled by the system.
Each category is associated with a specific display name and a
CrimeCategory.Severity level.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefines the severity levels for crime categories.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRobbery committed with the use of a lethal weapon.Willful and malicious burning of property.Physical attack or threat of attack on another person.Illegal entry into a building with the intent to commit a crime.Crimes involving physical or emotional abuse within a domestic setting.Crimes involving the illegal consumption or possession of controlled substances.Crimes involving unauthorized marking or painting on property.The unlawful killing of one human being by another.Crimes involving the improper disposal of waste.Crimes involving remaining in a public place without apparent purpose.Crimes involving excessive or disruptive noise levels.Represents miscellaneous crimes not specifically categorized.Theft of low-value property without the use of force.General crimes resulting in damage to physical property.Crimes involving disruptive behavior in public spaces.Theft involving the use of force or intimidation.Crimes involving non-consensual sexual acts.The act of following or harassing a person in a threatening manner.Unauthorized entry onto another person's property.Crimes involving willful destruction or defacement of property.Crimes involving illegal possession or use of restricted weapons. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the human-readable name of the crime category.Gets the severity level associated with this crime category.toString()Returns the display name of the crime category.static CrimeCategoryReturns the enum constant of this class with the specified name.static CrimeCategory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OTHER
Represents miscellaneous crimes not specifically categorized. -
GRAFFITI
Crimes involving unauthorized marking or painting on property. -
LITTERING
Crimes involving the improper disposal of waste. -
NOISE
Crimes involving excessive or disruptive noise levels. -
LOITERING
Crimes involving remaining in a public place without apparent purpose. -
VANDALISM
Crimes involving willful destruction or defacement of property. -
PUBLICDISTURBANCE
Crimes involving disruptive behavior in public spaces. -
PROPERTYDAMAGE
General crimes resulting in damage to physical property. -
PETTYTHEFT
Theft of low-value property without the use of force. -
TRESPASSING
Unauthorized entry onto another person's property. -
DRUGUSE
Crimes involving the illegal consumption or possession of controlled substances. -
ROBBERY
Theft involving the use of force or intimidation. -
ASSAULT
Physical attack or threat of attack on another person. -
DOMESTICABUSE
Crimes involving physical or emotional abuse within a domestic setting. -
WEAPONS
Crimes involving illegal possession or use of restricted weapons. -
STALKING
The act of following or harassing a person in a threatening manner. -
BREAKINGANDENTERING
Illegal entry into a building with the intent to commit a crime. -
SEXUALOFFENCE
Crimes involving non-consensual sexual acts. -
ARMEDROBBERY
Robbery committed with the use of a lethal weapon. -
ARSON
Willful and malicious burning of property. -
HOMICIDE
The unlawful killing of one human being by another.
-
-
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
-
toString
Returns the display name of the crime category.- Overrides:
toStringin classEnum<CrimeCategory>- Returns:
- The category name.
-
getName
Gets the human-readable name of the crime category.- Returns:
- The category name.
-
getSeverity
Gets the severity level associated with this crime category.- Returns:
- The
CrimeCategory.Severitylevel.
-