What is ? and : means in the following code?
@Override
public int getItemViewType(int position) {
return sectionHeader.contains(position) ? TYPE_SEPARATOR : TYPE_ITEM;
}
It is from the following link:
http://javatechig.com/android/listview-with-section-header-in-android