Package com.zb.mom.ww.mxgateway.client
Record Class MxStatuses.MxStatusView
java.lang.Object
java.lang.Record
com.zb.mom.ww.mxgateway.client.MxStatuses.MxStatusView
- Record Components:
raw- the underlying status proxy this view delegates to
- Enclosing class:
MxStatuses
Idiomatic-Java accessor view over a raw
MxaccessGateway.MxStatusProxy.-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aMxStatusViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the high-level status category.intdetail()Returns the detail code accompanying the status.Returns which subsystem detected the status.Returns the diagnostic text supplied by MXAccess, if any.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.raw()Returns the value of therawrecord component.intReturns the raw, unmapped category code from MXAccess.intReturns the raw, unmapped detection-source code from MXAccess.intsuccess()Returns the raw success flag (non-zero indicates success).final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MxStatusView
Creates an instance of aMxStatusViewrecord class.- Parameters:
raw- the value for therawrecord component
-
-
Method Details
-
success
public int success()Returns the raw success flag (non-zero indicates success).- Returns:
- the success flag value
-
category
Returns the high-level status category.- Returns:
- the status category enum value
-
detectedBy
Returns which subsystem detected the status.- Returns:
- the detection source enum value
-
detail
public int detail()Returns the detail code accompanying the status.- Returns:
- the raw detail code
-
rawCategory
public int rawCategory()Returns the raw, unmapped category code from MXAccess.- Returns:
- the raw category integer
-
rawDetectedBy
public int rawDetectedBy()Returns the raw, unmapped detection-source code from MXAccess.- Returns:
- the raw detection-source integer
-
diagnosticText
Returns the diagnostic text supplied by MXAccess, if any.- Returns:
- the diagnostic message, possibly empty
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
raw
Returns the value of therawrecord component.- Returns:
- the value of the
rawrecord component
-