Skip to content

Commit

Permalink
Add 'getId' method to EventBus.java
Browse files Browse the repository at this point in the history
Signed-off-by: 7orivorian <7orivorian+github@gmail.com>
  • Loading branch information
7orivorian committed Oct 18, 2023
1 parent c6b2b3e commit 5976c6a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/me/tori/wraith/bus/EventBus.java
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,13 @@ public boolean isShutdown() {
return shutdown;
}

/**
* @return the {@code id} of this event bus
*/
public int getId() {
return id;
}

/**
* Checks if this event bus is equal to another object.
* <p>If the given object is an event bus, it is only considered equal if {@code this.id == that.id}.
Expand Down

0 comments on commit 5976c6a

Please sign in to comment.