Example usage for com.google.common.eventbus EventBus equals

List of usage examples for com.google.common.eventbus EventBus equals

Introduction

In this page you can find the example usage for com.google.common.eventbus EventBus equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Indicates whether some other object is "equal to" this one.

Usage

From source file:de.kaiserpfalzEdv.commons.jee.eventbus.SimpleEventBusHandler.java

public void setBus(EventBus bus) {
    checkArgument(bus != null, "You have to give a valid bus to register to!");
    if (bus.equals(getBus()))
        return;//  w  ww.j  a  v  a 2s.c  o m

    if (handler != null)
        unregister(handler);

    SimpleEventBusHandler.bus.set(bus);
    if (handler != null)
        register(handler);
}