Record Class PunishmentCurrentIpCache.IpTypeKey
java.lang.Object
java.lang.Record
de.murmelmeister.murmelapi.punishment.ip.PunishmentCurrentIpCache.IpTypeKey
- Enclosing class:
PunishmentCurrentIpCache
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theipAddressrecord component.final StringtoString()Returns a string representation of this record class.inttypeId()Returns the value of thetypeIdrecord component.
-
Field Details
-
ipAddress
The field for theipAddressrecord component. -
typeId
private final int typeIdThe field for thetypeIdrecord component.
-
-
Constructor Details
-
IpTypeKey
Creates an instance of aIpTypeKeyrecord class.- Parameters:
ipAddress- the value for theipAddressrecord componenttypeId- the value for thetypeIdrecord component
-
-
Method Details
-
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 '=='. -
ipAddress
Returns the value of theipAddressrecord component.- Returns:
- the value of the
ipAddressrecord component
-
typeId
public int typeId()Returns the value of thetypeIdrecord component.- Returns:
- the value of the
typeIdrecord component
-