Record Class DeviceParameterSeal.Opened

java.lang.Object
java.lang.Record
com.iizix.device.DeviceParameterSeal.Opened
Record Components:
outcome - The outcome, never null.
value - The parameter's value for DeviceParameterSeal.Outcome.SUCCESS, null otherwise.
appID - The application ID the value was sealed for, for DeviceParameterSeal.Outcome.OTHER_APP; null otherwise.
uuid - The device UUID the value was sealed on, for DeviceParameterSeal.Outcome.OTHER_DEVICE ("{Unknown}" when a value of the form before this class carries none); null otherwise.
cause - The failure for DeviceParameterSeal.Outcome.INVALID, null otherwise.
Enclosing class:
DeviceParameterSeal

public static record DeviceParameterSeal.Opened(DeviceParameterSeal.Outcome outcome, String value, String appID, String uuid, Throwable cause) extends Record
An opened value.
Author:
Christopher Mindus
  • Constructor Details

    • Opened

      public Opened(DeviceParameterSeal.Outcome outcome, String value, String appID, String uuid, Throwable cause)
      Creates an instance of a Opened record class.
      Parameters:
      outcome - the value for the outcome record component
      value - the value for the value record component
      appID - the value for the appID record component
      uuid - the value for the uuid record component
      cause - the value for the cause record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • outcome

      public DeviceParameterSeal.Outcome outcome()
      Returns the value of the outcome record component.
      Returns:
      the value of the outcome record component
    • value

      public String value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component
    • appID

      public String appID()
      Returns the value of the appID record component.
      Returns:
      the value of the appID record component
    • uuid

      public String uuid()
      Returns the value of the uuid record component.
      Returns:
      the value of the uuid record component
    • cause

      public Throwable cause()
      Returns the value of the cause record component.
      Returns:
      the value of the cause record component