Update SearchType.java

updated psuedocode for equals method