how do i equate a function to null in java?