Record Class NDefWifi
java.lang.Object
java.lang.Record
com.rvi.domain.NDefWifi
- All Implemented Interfaces:
NDefContent
public record NDefWifi(String ssid, WifiAuthentication authentication, WifiEncryption encryption, String password)
extends Record
implements NDefContent
-
Constructor Summary
ConstructorsConstructorDescriptionNDefWifi(String ssid, WifiAuthentication authentication, WifiEncryption encryption, String password) Creates an instance of aNDefWifirecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthenticationrecord component.Returns the value of theencryptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.password()Returns the value of thepasswordrecord component.ssid()Returns the value of thessidrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
NDefWifi
public NDefWifi(String ssid, WifiAuthentication authentication, WifiEncryption encryption, String password) Creates an instance of aNDefWifirecord class.- Parameters:
ssid- the value for thessidrecord componentauthentication- the value for theauthenticationrecord componentencryption- the value for theencryptionrecord componentpassword- the value for thepasswordrecord component
-
-
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). -
ssid
Returns the value of thessidrecord component.- Returns:
- the value of the
ssidrecord component
-
authentication
Returns the value of theauthenticationrecord component.- Returns:
- the value of the
authenticationrecord component
-
encryption
Returns the value of theencryptionrecord component.- Returns:
- the value of the
encryptionrecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-