@Test(expected = IllegalArgumentException.class) public void getFailsForNullKey() { final EventDrivenUpdatesMap map = new EventDrivenUpdatesMap(DEFAULT_DELEGATE); map.get(null); }
@Override @SuppressWarnings("unchecked") public String get(Object events) throws IllegalArgumentException { if (events instanceof Iterable) { return get((Iterable<String>) events, DEFAULT_VALUE); } else if (events instanceof String) { final String[] iter = parseEventsAndDefault((String) events); return get(iter[0], iter[1]); } throw new IllegalArgumentException("expected Iterable<String> or String but was " + events); }
EventDrivenUpdatesMap extends AbstractMap<String, String> implements Serializable { @Override @SuppressWarnings("unchecked") public String get(Object events) throws IllegalArgumentException { if (events instanceof Iterable) { return get((Iterable<String>) events, DEFAULT_VALUE); } else if (events instanceof String) { final String[] iter = parseEventsAndDefault((String) events); return get(iter[0], iter[1]); } throw new IllegalArgumentException("expected Iterable<String> or String but was " + events); } }
EventDrivenUpdatesMap extends AbstractMap<String, String> implements Serializable { @Override @SuppressWarnings("unchecked") public String get(Object events) throws IllegalArgumentException { if (events instanceof Iterable) { return get((Iterable<String>) events, DEFAULT_VALUE); } else if (events instanceof String) { final String[] iter = parseEventsAndDefault((String) events); return get(iter[0], iter[1]); } throw new IllegalArgumentException("expected Iterable<String> or String but was " + events); } EventDrivenUpdatesMap();   EventDrivenUpdatesMap(Map<String, Set<String>> delegate); }
EventDrivenUpdatesMap extends AbstractMap<String, String> implements Serializable { @Override @SuppressWarnings("unchecked") public String get(Object events) throws IllegalArgumentException { if (events instanceof Iterable) { return get((Iterable<String>) events, DEFAULT_VALUE); } else if (events instanceof String) { final String[] iter = parseEventsAndDefault((String) events); return get(iter[0], iter[1]); } throw new IllegalArgumentException("expected Iterable<String> or String but was " + events); } EventDrivenUpdatesMap();   EventDrivenUpdatesMap(Map<String, Set<String>> delegate); @Override @SuppressWarnings("unchecked") String get(Object events); String get(Iterable<String> events, String defaultValue); String get(String events, String defaultValue); void add(String events, String...ids); @Override Set<Map.Entry<String, String>> entrySet(); @Override String toString(); }
EventDrivenUpdatesMap extends AbstractMap<String, String> implements Serializable { @Override @SuppressWarnings("unchecked") public String get(Object events) throws IllegalArgumentException { if (events instanceof Iterable) { return get((Iterable<String>) events, DEFAULT_VALUE); } else if (events instanceof String) { final String[] iter = parseEventsAndDefault((String) events); return get(iter[0], iter[1]); } throw new IllegalArgumentException("expected Iterable<String> or String but was " + events); } EventDrivenUpdatesMap();   EventDrivenUpdatesMap(Map<String, Set<String>> delegate); @Override @SuppressWarnings("unchecked") String get(Object events); String get(Iterable<String> events, String defaultValue); String get(String events, String defaultValue); void add(String events, String...ids); @Override Set<Map.Entry<String, String>> entrySet(); @Override String toString();  }