public static boolean contains ( final byte [ ] pByte , final SwEnum ... pEnum ) { SwEnum val = SwEnum . getSW ( pByte ) ; if ( LOGGER . isDebugEnabled ( ) && pByte != null ) { LOGGER . debug ( "Response Status <" + BytesUtils . bytesToStringNoSpace ( Arrays . copyOfRange ( pByte , Math . max ( pByte . length - 2 , 0 ) , pByte . length ) ) + "> : " + ( val != null ? val . getDetail ( ) : "Unknow" ) ) ; } return val != null && ArrayUtils . contains ( pEnum , val ) ; }
Method used to check equality with the last command return SW1SW2 == pEnum