Android Open Source - UniversalAndroidAdapter Headed List






From Project

Back to project page UniversalAndroidAdapter.

License

The source code is released under:

Apache License

If you think the Android project UniversalAndroidAdapter listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.krieger.libraries.entities;
/* ww  w  . j  a  v a 2 s  .co  m*/
import java.util.ArrayList;

public class HeadedList <HeaderType, ItemType>{
  private HeaderType header;
  private ArrayList<ItemType> contents;
  
  public HeadedList(){}
  
  public HeadedList(HeaderType header, ArrayList<ItemType> contents){
    this.header=header;
    this.contents=contents;
  }
  
  public void setHeader(HeaderType header) {
    this.header = header;
  }

  public void setContents(ArrayList<ItemType> contents) {
    this.contents = contents;
  }

  public HeaderType getHeader() {
    return header;
  }
  
  public ArrayList<ItemType> getContents() {
    return contents;
  }
}




Java Source Code List

com.krieger.libraries.adapter.UniversalListAdapter.java
com.krieger.libraries.entities.HeadedList.java
com.krieger.libraries.interfaces.AdapterCommand.java