compares this protocol version to another one . note that the comparison is done based on the semantic version , i.e. dtls protocol version 1.0 represented as major 254 , minor 255 is considered lower than 1.2 represented as major 254 , minor 253 whereas the byte values representing version 1.0 are actually larger . concode_field_sep int minor concode_elem_sep int major concode_field_sep int getMinor concode_elem_sep int hashCode concode_elem_sep boolean equals concode_elem_sep int getMajor
int function ( ProtocolVersion arg0 ) { if ( major == arg0 . getMajor ( ) ) { if ( minor < arg0 . getMinor ( ) ) { return 1 ; } else if ( minor > arg0 . getMinor ( ) ) { return - 1 ; } else { return 0 ; } } else if ( major < arg0 . getMajor ( ) ) { return 1 ; } else { return - 1 ; } }