Class AttentionSetObserver.Event
- java.lang.Object
-
- com.google.gerrit.server.extensions.events.AbstractChangeEvent
-
- com.google.gerrit.server.extensions.events.AttentionSetObserver.Event
-
- All Implemented Interfaces:
AttentionSetListener.Event
,ChangeEvent
,GerritEvent
- Enclosing class:
- AttentionSetObserver
public static class AttentionSetObserver.Event extends AbstractChangeEvent implements AttentionSetListener.Event
Event to be fired when an attention set changes
-
-
Constructor Summary
Constructors Constructor Description Event(ChangeInfo change, AccountInfo editor, Set<Integer> added, Set<Integer> removed, Instant when)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Integer>
usersAdded()
Returns the users added to the attention set because of this changeSet<Integer>
usersRemoved()
Returns the users removed from the attention set because of this change-
Methods inherited from class com.google.gerrit.server.extensions.events.AbstractChangeEvent
getChange, getNotify, getWhen, getWho
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.gerrit.extensions.events.ChangeEvent
getChange, getWhen, getWho
-
Methods inherited from interface com.google.gerrit.extensions.events.GerritEvent
getNotify
-
-
-
-
Constructor Detail
-
Event
public Event(ChangeInfo change, AccountInfo editor, Set<Integer> added, Set<Integer> removed, Instant when)
-
-
Method Detail
-
usersAdded
public Set<Integer> usersAdded()
Description copied from interface:AttentionSetListener.Event
Returns the users added to the attention set because of this change- Specified by:
usersAdded
in interfaceAttentionSetListener.Event
- Returns:
- Account IDs
-
usersRemoved
public Set<Integer> usersRemoved()
Description copied from interface:AttentionSetListener.Event
Returns the users removed from the attention set because of this change- Specified by:
usersRemoved
in interfaceAttentionSetListener.Event
- Returns:
- Account IDs
-
-