Android Open Source - android-charmap Index Entry






From Project

Back to project page android-charmap.

License

The source code is released under:

MIT License

If you think the Android project android-charmap 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.kkinder.charmap;
/* w w  w. j  a  v a2s .com*/
/**
 * A pair of index (integer) and value (CharSequence) which the `toString()` returns the value.
 * This class is used in filtering of list adapter so the index is not missed.
 * 
 * @author fikr4n
 *
 */
public class IndexEntry {

  public final int index;
  public final CharSequence value;

  public IndexEntry(int index, CharSequence value) {
    this.index = index;
    this.value = value;
  }

  @Override
  public String toString() {
    return value == null ? null : value.toString();
  }
}




Java Source Code List

com.kkinder.charmap.CharMap.java
com.kkinder.charmap.CharmapActivity.java
com.kkinder.charmap.IndexEntry.java