Record Class FallbackCacheMeta.FallbackCacheRow
java.lang.Object
java.lang.Record
com.inductiveautomation.vision.auth.FallbackCacheMeta.FallbackCacheRow
- Enclosing class:
- FallbackCacheMeta
-
Constructor Summary
ConstructorsConstructorDescriptionFallbackCacheRow
(String username, String userJson, String hashedPassword, long timestamp) Creates an instance of aFallbackCacheRow
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thehashedPassword
record component.long
Returns the value of thetimestamp
record component.void
toRow
(PreparedStatement statement) final String
toString()
Returns a string representation of this record class.userJson()
Returns the value of theuserJson
record component.username()
Returns the value of theusername
record component.
-
Constructor Details
-
FallbackCacheRow
Creates an instance of aFallbackCacheRow
record class.- Parameters:
username
- the value for theusername
record componentuserJson
- the value for theuserJson
record componenthashedPassword
- the value for thehashedPassword
record componenttimestamp
- the value for thetimestamp
record component
-
-
Method Details
-
fromRow
- Throws:
SQLException
-
toRow
- Throws:
SQLException
-
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 '=='. -
username
Returns the value of theusername
record component.- Returns:
- the value of the
username
record component
-
userJson
Returns the value of theuserJson
record component.- Returns:
- the value of the
userJson
record component
-
hashedPassword
Returns the value of thehashedPassword
record component.- Returns:
- the value of the
hashedPassword
record component
-
timestamp
public long timestamp()Returns the value of thetimestamp
record component.- Returns:
- the value of the
timestamp
record component
-