public final class

CauseCode

extends Object
java.lang.Object
   ↳ com.commsignia.v2x.client.model.CauseCode

Class Overview

Represents a cause code with a sub cause code

Summary

Public Constructors
CauseCode(PrimaryCause primaryCause, int subCauseCode)
Creates a cause code instance with custom sub cause code.
CauseCode(int primaryCauseCode, int subCauseCode)
Creates a cause code instance with a custom primary and custom sub cause code.
CauseCode(int primaryCauseCode, BaseSubCauseCode subCause)
Creates a cause code instance with custom primary cause code.
CauseCode(PrimaryCause primaryCause, BaseSubCauseCode subCause)
Creates a cause code instance.
Public Methods
boolean equals(Object o)
PrimaryCause getPrimaryCause()
Returns the primary cause object
BaseSubCauseCode getSubCause()
Returns the sub cause object
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CauseCode (PrimaryCause primaryCause, int subCauseCode)

Creates a cause code instance with custom sub cause code.

Parameters
primaryCause primary cause
subCauseCode custom sub cause code

public CauseCode (int primaryCauseCode, int subCauseCode)

Creates a cause code instance with a custom primary and custom sub cause code.

Parameters
primaryCauseCode custom primary cause code
subCauseCode custom sub cause code

public CauseCode (int primaryCauseCode, BaseSubCauseCode subCause)

Creates a cause code instance with custom primary cause code.

Parameters
primaryCauseCode custom primary cause code
subCause sub cause

public CauseCode (PrimaryCause primaryCause, BaseSubCauseCode subCause)

Creates a cause code instance.

Parameters
primaryCause primary cause
subCause sub cause

Public Methods

public boolean equals (Object o)

public PrimaryCause getPrimaryCause ()

Returns the primary cause object

Returns
  • primary cause

public BaseSubCauseCode getSubCause ()

Returns the sub cause object

Returns
  • sub cause

public int hashCode ()

public String toString ()