Update SearchType.java

updated all methods to 'functional'. eclipse still flags error for Field a.getFieldName() and cannot import java.uitl.ArrayList. Looking into it.