public class HippoEvent<E extends HippoEvent<E>> extends Object implements Cloneable
When creating a subclass, it is possible to keep the fluent style by extending as
public class MyEvent<E extends MyEvent> extends HippoEvent<E> {
}
Note that subclasses should not introduce any fields of their own.
Constructor and Description |
---|
HippoEvent(HippoEvent<?> event)
Copy constructor
|
HippoEvent(String application) |
Modifier and Type | Method and Description |
---|---|
String |
action() |
E |
action(String action) |
String |
application() |
E |
application(String application) |
String |
category() |
E |
category(String category) |
E |
clone() |
<T> T |
get(String key) |
Map<String,Object> |
getValues() |
boolean |
isSealed() |
String |
message() |
E |
message(String message) |
protected E |
put(String key,
Object value) |
String |
result() |
E |
result(String result) |
void |
sealEvent() |
E |
set(String key,
Object value) |
Boolean |
system() |
E |
system(Boolean system) |
long |
timestamp() |
E |
timestamp(long timestamp) |
String |
user() |
E |
user(String user) |
public HippoEvent(String application)
public HippoEvent(HippoEvent<?> event)
event
- the to-be-copied eventpublic void sealEvent()
public boolean isSealed()
public String application()
public String user()
public String action()
public String category()
public E timestamp(long timestamp)
public long timestamp()
public String result()
public String message()
public Boolean system()
public <T> T get(String key)
Copyright © 2012–2015 Hippo B.V. (http://www.onehippo.com). All rights reserved.