Skip to content

Commit

Permalink
feat(MultiTypeAdapter):数据集合默认使用Object
Browse files Browse the repository at this point in the history
  • Loading branch information
JunhuaLin committed Nov 3, 2019
1 parent 8848767 commit 4b0787a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class MultiTypeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHold
//region filed

// data res
private List<?> mList;
private List<Object> mList;
private LayoutInflater mLayoutInflater;

// save ItemViewBinder
Expand Down Expand Up @@ -87,7 +87,7 @@ public <T> OneToManyMapper<T> register(@NonNull Class<T> beanClass) {
* @return List
*/
@NonNull
public List<?> getList() {
public List<Object> getList() {
return mList;
}

Expand All @@ -96,7 +96,7 @@ public List<?> getList() {
*
* @param list {@link List}
*/
public void setList(@Nullable List<?> list) {
public void setList(@Nullable List<Object> list) {
mList.clear();
if (list == null) {
mList = Collections.emptyList();
Expand Down

0 comments on commit 4b0787a

Please sign in to comment.