boolean function ( final Object arg0 ) { if ( ! ( arg0 instanceof GitVersion ) ) { return false ; } GitVersion loc0 = ( GitVersion ) arg0 ; if ( compareTo ( loc0 ) != 0 ) { return false ; } if ( myType == Type . UNDEFINED || loc0 . myType == Type . UNDEFINED ) { return true ; } return myType == loc0 . myType ; }
note : this class has a natural ordering that is inconsistent with equals . two gitversions are equal if their number versions are equal and if their types are equal . types are considered equal also if one of them is undefined . otherwise they are compared . concode_field_sep GitVersion NULL concode_elem_sep int myMajor concode_elem_sep GitVersion MIN concode_elem_sep int myHashCode concode_elem_sep Pattern FORMAT concode_elem_sep Type myType concode_elem_sep int myMinor concode_elem_sep Logger LOG concode_elem_sep int myRevision concode_elem_sep int myPatchLevel concode_field_sep GitVersion identifyVersion concode_elem_sep boolean isLaterOrEqual concode_elem_sep int getIntGroup concode_elem_sep Type getType concode_elem_sep int hashCode concode_elem_sep boolean isNull concode_elem_sep String toString concode_elem_sep boolean isOlderOrEqual concode_elem_sep GitVersion parse concode_elem_sep boolean isSupported concode_elem_sep int compareTo