Example usage for java.util Observable getClass

List of usage examples for java.util Observable getClass

Introduction

In this page you can find the example usage for java.util Observable getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:com.monead.semantic.workbench.SemanticWorkbench.java

@Override
public void update(Observable o, Object arg) {
    LOGGER.debug("Update received from " + o.getClass().getName());

    if (o instanceof SparqlServer) {
        updateSparqlServerInfo();// w  ww .j  a  v a  2  s.  c  om
    } else if (o instanceof CheckLatestVersion) {
        notifyNewerVersion((NewVersionInformation) arg);
    }
}

From source file:us.daveread.basicquery.BasicQuery.java

@Override
public void update(Observable o, Object arg) {
    LOGGER.debug("Update received from " + o.getClass().getName());

    if (o instanceof CheckLatestVersion) {
        notifyNewerVersion((NewVersionInformation) arg);
    }/*  w  w  w  . j  a  va2  s.  c om*/
}