StreamlineEventImpl extends ForwardingMap<String, Object> implements StreamlineEvent { public final void clear() { throw new UnsupportedOperationException(); } private  StreamlineEventImpl(); private  StreamlineEventImpl(Map<String, Object> keyValues, String dataSourceId, Map<String, Object> header,
                                String sourceStream, Map<String, Object> auxiliaryFieldsAndValues); static StreamlineEventImpl.Builder builder(); @Override Map<String, Object> getAuxiliaryFieldsAndValues(); @Override StreamlineEvent addAuxiliaryFieldAndValue(String field, Object value); @Override String getId(); @Override String getDataSourceId(); @Override String getSourceStream(); @Override StreamlineEvent addFieldsAndValues(Map<String, Object> fieldsAndValues); @Override StreamlineEvent addFieldAndValue(String key, Object value); @Override StreamlineEvent addHeaders(Map<String, Object> headers); @Override Map<String, Object> getHeader(); @Override byte[] getBytes(); @Override boolean equals(Object o); @Override int hashCode(); final Object put(String k, Object v); final Object remove(Object o); final void putAll(Map<? extends String, ? extends Object> map); final void clear(); static StreamlineEvent fromString(String s); @Override String toString(); final static String DEFAULT_SOURCE_STREAM; static final StreamlineEvent GROUP_BY_TRIGGER_EVENT; static final String TO_STRING_PREFIX; }
@Test(expected = UnsupportedOperationException.class) public void testClear() throws Exception { Map<String, Object> map = new HashMap<>(); map.put("foo", "bar"); StreamlineEvent event = StreamlineEventImpl.builder().fieldsAndValues(map).build(); event.clear(); }