public boolean isSameType ( AuthenticationMethod other ) { if ( other == null ) return false ; return other . getClass ( ) . equals ( this . getClass ( ) ) ; }
Checks if another method is of the same type .