public class Section
extends java.lang.Object
SectionedRecyclerViewAdapter
Constructor and Description |
---|
Section(java.lang.String sectionId,
int sectionNameResource)
Constructor
|
Section(java.lang.String sectionId,
java.lang.String sectionName)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
java.lang.String |
getSectionId()
Getter
|
java.lang.String |
getSectionName(Context context)
Getter
|
java.lang.String |
toString() |
public Section(java.lang.String sectionId, java.lang.String sectionName)
sectionId
- the (unique) ID of this sectionsectionName
- the name of this sectionpublic Section(java.lang.String sectionId, @StringRes int sectionNameResource)
sectionId
- the (unique) ID of this sectionsectionNameResource
- the resource id of the section namepublic java.lang.String getSectionId()
public java.lang.String getSectionName(Context context)
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object