package chat.rocket.android.layouthelper.chatroom.roomlist;

import android.support.annotation.NonNull;

import java.util.List;
import chat.rocket.core.models.Room;

public interface RoomListHeader {

  String getTitle();

  boolean owns(Room room);

  boolean shouldShow(@NonNull List<Room> roomList);

  ClickListener getClickListener();

  interface ClickListener {
    void onClick();
  }
}

package chat.rocket.android.layouthelper.chatroom.roomlist;

import android.support.annotation.NonNull;

import chat.rocket.core.models.RoomSidebar;
import java.util.List;
import chat.rocket.core.models.Room;

public interface RoomListHeader {

  String getTitle();

  boolean owns(RoomSidebar roomSidebar);

  boolean shouldShow(@NonNull List<RoomSidebar> roomSidebarList);

  ClickListener getClickListener();

  interface ClickListener {
    void onClick();
  }
}

Update RoomListHeader.java