CrypticClue extends ClueScroll implements TextClueScroll, NpcClueScroll, ObjectClueScroll { public static CrypticClue forText(String text) { for (CrypticClue clue : CLUES) { if (text.equalsIgnoreCase(clue.text) || text.equalsIgnoreCase(clue.questionText)) { return clue; } } return null; } private  CrypticClue(String text, WorldPoint location, String solution); private  CrypticClue(String text, int objectId, WorldPoint location, String solution); private  CrypticClue(String text, String npc, WorldPoint location, String solution); private  CrypticClue(String text, String npc, WorldPoint location, String solution, boolean requiresLight); private  CrypticClue(String text, int objectId, WorldPoint location, String solution, String questionText); private  CrypticClue(String text, String npc, WorldPoint location, String solution, String questionText); private  CrypticClue(String text, String npc, int objectId, WorldPoint location, String solution); private  CrypticClue(String text, String npc, int objectId, WorldPoint location, String solution, @Nullable String questionText); @Override void makeOverlayHint(PanelComponent panelComponent, ClueScrollPlugin plugin); @Override void makeWorldOverlayHint(Graphics2D graphics, ClueScrollPlugin plugin); static CrypticClue forText(String text); @Override int[] getObjectIds(); @Override String[] getNpcs(); static final Set<CrypticClue> CLUES; }
@Test public void forTextEmptyString() { assertNull(CrypticClue.forText("")); }