Example usage for android.widget ListAdapter getClass

List of usage examples for android.widget ListAdapter getClass

Introduction

In this page you can find the example usage for android.widget ListAdapter getClass.

Prototype

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

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:com.sababado.support.v4.app.SearchableSupportListFragment.java

@Override
public void setListAdapter(ListAdapter adapter) {
    if (!(adapter instanceof Filterable))
        throw new RuntimeException("The adapter " + adapter.getClass() + " is not of Filterable type.");
    if (adapter instanceof FilterableBaseAdapter)
        mFilterableAdapter = (FilterableBaseAdapter) adapter;
    super.setListAdapter(adapter);
}