public boolean sameAs ( Object obj ) { if ( obj == null ) { return false ; } if ( obj instanceof String || obj instanceof IdVersionString ) { if ( this . toString ( ) . equals ( obj . toString ( ) ) ) { return true ; } } return false ; }
Tests if the parameter is the same id and version .