Record Class AccountNotices.Context
java.lang.Object
java.lang.Record
com.iizix.server.user.AccountNotices.Context
- Record Components:
address- The client address as text, null when unknown.place- The approximate place (the city, region and country the address resolves to), null when unknown.base- The base of the mailed links ashttps://host[:port], null when unknown.device- The device line, e.g. "Browser, Windows" or "Apple iPhone15,2 (iOS 26.1)", null when unknown.
- Enclosing class:
AccountNotices
public static record AccountNotices.Context(String address, String place, String base, String device) extends Record
Where the change was made from: the client address and the approximate place, each null when unknown, the base of the links the mail carries - the origin the client session reached the server by, else the server's configured external URL (
MailLinkBase, R-145), null when neither is known - and the device line the server has for the session (ClientDeviceName), null when unknown.- Author:
- Christopher Mindus
Field Summary
FieldsConstructor Summary
ConstructorsConstructorDescriptionA context without a link base and a device: the address and the place.A context without a device: the address, the place and the link base.Creates an instance of aContextrecord class.Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.base()Returns the value of thebaserecord component.device()Returns the value of thedevicerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.place()Returns the value of theplacerecord component.final StringtoString()Returns a string representation of this record class.
Field Details
NONE
Nothing known.
Constructor Details
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).address
place
base
device