Record Class IdBan
java.lang.Object
java.lang.Record
com.io7m.idstore.model.IdBan
- Record Components:
user- The user (or admin) IDreason- The ban reasonexpires- The expiration date, if any
An account ban.
-
Constructor Summary
ConstructorsConstructorDescriptionIdBan(UUID user, String reason, Optional<OffsetDateTime> expires) An account ban. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.expires()Returns the value of theexpiresrecord component.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord component.
-
Constructor Details
-
IdBan
An account ban.- Parameters:
user- The user (or admin) IDreason- The ban reasonexpires- The expiration date, if any
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
user
-
reason
-
expires
-