@Test(expected = IllegalArgumentException.class) public void testSetEventType() { new RecordEvent(null, System.currentTimeMillis()); }
private void setEventType(String eventType) { if (eventType == null) { throw new IllegalArgumentException("EventType cannot be null."); } put(RecordReserveKeyEnum.EVENT_SUBJECT.toString(), eventType); }
RecordEvent implements Record, Map<String, Object>, Serializable { private void setEventType(String eventType) { if (eventType == null) { throw new IllegalArgumentException("EventType cannot be null."); } put(RecordReserveKeyEnum.EVENT_SUBJECT.toString(), eventType); } }
RecordEvent implements Record, Map<String, Object>, Serializable { private void setEventType(String eventType) { if (eventType == null) { throw new IllegalArgumentException("EventType cannot be null."); } put(RecordReserveKeyEnum.EVENT_SUBJECT.toString(), eventType); } private  RecordEvent(Map<String, Object> map);  RecordEvent(String eventType);  RecordEvent(String eventType, long time);  RecordEvent(String eventType, String host);  RecordEvent(String eventType, String host, long time);  RecordEvent(Map<String, Object> map, String eventType, String host, long time); }
RecordEvent implements Record, Map<String, Object>, Serializable { private void setEventType(String eventType) { if (eventType == null) { throw new IllegalArgumentException("EventType cannot be null."); } put(RecordReserveKeyEnum.EVENT_SUBJECT.toString(), eventType); } private  RecordEvent(Map<String, Object> map);  RecordEvent(String eventType);  RecordEvent(String eventType, long time);  RecordEvent(String eventType, String host);  RecordEvent(String eventType, String host, long time);  RecordEvent(Map<String, Object> map, String eventType, String host, long time); String getEventType(); String getHost(); Long getTime(); void resetTime(); String getID(); void setID(String id); @Override void clear(); @Override boolean containsKey(Object key); @Override boolean containsValue(Object value); @Override Set<Entry<String, Object>> entrySet(); @Override boolean equals(Object o); @Override Object get(Object key); @Override int hashCode(); @Override boolean isEmpty(); @Override Set<String> keySet(); @Override Object put(String key, Object value); @Override void putAll(Map<? extends String, ? extends Object> t); @Override Object remove(Object key); @Override int size(); @Override String toString(); @Override Collection<Object> values(); @Override String getSubject(); @Override byte[] getKey(); @Override Map<String, Object> getValueRaw(); @Override byte[] getValue(); @Override RecordEvent clone(); }
RecordEvent implements Record, Map<String, Object>, Serializable { private void setEventType(String eventType) { if (eventType == null) { throw new IllegalArgumentException("EventType cannot be null."); } put(RecordReserveKeyEnum.EVENT_SUBJECT.toString(), eventType); } private  RecordEvent(Map<String, Object> map);  RecordEvent(String eventType);  RecordEvent(String eventType, long time);  RecordEvent(String eventType, String host);  RecordEvent(String eventType, String host, long time);  RecordEvent(Map<String, Object> map, String eventType, String host, long time); String getEventType(); String getHost(); Long getTime(); void resetTime(); String getID(); void setID(String id); @Override void clear(); @Override boolean containsKey(Object key); @Override boolean containsValue(Object value); @Override Set<Entry<String, Object>> entrySet(); @Override boolean equals(Object o); @Override Object get(Object key); @Override int hashCode(); @Override boolean isEmpty(); @Override Set<String> keySet(); @Override Object put(String key, Object value); @Override void putAll(Map<? extends String, ? extends Object> t); @Override Object remove(Object key); @Override int size(); @Override String toString(); @Override Collection<Object> values(); @Override String getSubject(); @Override byte[] getKey(); @Override Map<String, Object> getValueRaw(); @Override byte[] getValue(); @Override RecordEvent clone(); static final String LOCAL_HOSTNAME; }