Java Interface With Only One Method For Identifying