| Package | Description |
|---|---|
| com.atlassian.johnson |
Johnson is an application consistency framework.
|
| com.atlassian.johnson.event | |
| com.atlassian.johnson.filters | |
| com.atlassian.johnson.support |
| Modifier and Type | Method and Description |
|---|---|
Optional<Event> |
JohnsonEventContainer.firstEvent(Predicate<? super Event> predicate)
Returns the first event (if any) that satisfies the given predicate.
|
Optional<Event> |
DefaultJohnsonEventContainer.firstEvent(Predicate<? super Event> predicate) |
Collection<Event> |
JohnsonEventContainer.getEvents()
Retrieves an immutable view of the contained
Events. |
List<Event> |
DefaultJohnsonEventContainer.getEvents()
Retrieves an unmodifiable view of the current
Event list. |
Collection<Event> |
JohnsonEventContainer.getEvents(Predicate<? super Event> predicate)
Returns any events that satisfy the given predicate.
|
Collection<Event> |
DefaultJohnsonEventContainer.getEvents(Predicate<? super Event> predicate) |
Stream<Event> |
JohnsonEventContainer.stream()
Retrieves a stream which can be used to filter, map, sort or otherwise iterate over the
events
in the container. |
Stream<Event> |
DefaultJohnsonEventContainer.stream() |
| Modifier and Type | Method and Description |
|---|---|
void |
JohnsonEventContainer.addEvent(Event event)
Adds the provided event to the collection.
|
void |
DefaultJohnsonEventContainer.addEvent(Event event)
Adds the provided
Event to the list. |
void |
JohnsonEventContainer.removeEvent(Event event)
Removes the specified
Event from the container, if it can be found. |
void |
DefaultJohnsonEventContainer.removeEvent(Event event)
Removes the provided
Event from the list, if it can be found. |
| Modifier and Type | Method and Description |
|---|---|
Optional<Event> |
JohnsonEventContainer.firstEvent(Predicate<? super Event> predicate)
Returns the first event (if any) that satisfies the given predicate.
|
Optional<Event> |
DefaultJohnsonEventContainer.firstEvent(Predicate<? super Event> predicate) |
Collection<Event> |
JohnsonEventContainer.getEvents(Predicate<? super Event> predicate)
Returns any events that satisfy the given predicate.
|
Collection<Event> |
DefaultJohnsonEventContainer.getEvents(Predicate<? super Event> predicate) |
boolean |
JohnsonEventContainer.hasEvent(Predicate<? super Event> predicate)
Indicates whether this container has any events that satisfy the given predicate.
|
boolean |
DefaultJohnsonEventContainer.hasEvent(Predicate<? super Event> predicate) |
| Modifier and Type | Method and Description |
|---|---|
Event |
AddEvent.getEvent()
Retrieves the Johnson
Event to add to the container. |
Event |
RemoveEvent.getEvent()
Retrieves the Johnson
Event to remove from the container. |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<Event> |
EventPredicates.attributeEquals(String name,
Object value)
Matches events which have the specified value for a given attribute.
|
static Predicate<Event> |
EventPredicates.level(EventLevel... levels)
Matches events which have any of the specified
levels. |
static Predicate<Event> |
EventPredicates.type(EventType type)
Matches events which have the specified
type. |
| Constructor and Description |
|---|
AddEvent(Object o,
Event event)
Constructs a new
AddEvent, setting its source and the Johnson Event to be added. |
RemoveEvent(Object o,
Event event)
Constructs a new
RemoveEvent, setting its source and the Johnson Event to be removed. |
| Modifier and Type | Method and Description |
|---|---|
protected String |
AbstractJohnsonFilter.getStringForEvents(Collection<Event> events) |
| Modifier and Type | Method and Description |
|---|---|
Event |
EventExceptionTranslator.translate(Throwable thrown)
Attempt to translate the provided
Throwable to an event. |
Copyright © 2018 Atlassian. All rights reserved.