Module org.neo4j.driver
Record Class NotificationSeverity
java.lang.Object
java.lang.Record
org.neo4j.driver.internal.bolt.api.NotificationSeverity
- All Implemented Interfaces:
Comparable<NotificationSeverity>
public record NotificationSeverity(NotificationSeverity.Type type, int level)
extends Record
implements Comparable<NotificationSeverity>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NotificationSeveritystatic final NotificationSeveritystatic final NotificationSeverity -
Constructor Summary
ConstructorsConstructorDescriptionNotificationSeverity(NotificationSeverity.Type type, int level) Creates an instance of aNotificationSeverityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(NotificationSeverity severity) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlevel()Returns the value of thelevelrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.static Optional<NotificationSeverity>
-
Field Details
-
OFF
-
INFORMATION
-
WARNING
-
-
Constructor Details
-
NotificationSeverity
Creates an instance of aNotificationSeverityrecord class.- Parameters:
type- the value for thetyperecord componentlevel- the value for thelevelrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<NotificationSeverity>
-
valueOf
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
level
public int level()Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-