Android Open Source - sloop Data Record






From Project

Back to project page sloop.

License

The source code is released under:

NON-LICENSE The Sloop data-browser source code is hereby released into the Public Domain. The original author, David Megginson, Megginson Technologies Ltd., and Acclar Open Ltd. provide no warranty:...

If you think the Android project sloop 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.megginson.sloop.model;
//from  w  ww  .jav  a 2 s .  c  om
import java.util.List;
import java.util.Map;

import android.os.Parcelable;

/**
 * A read-only row of data.
 * 
 * This interface represents a single row of data in a {@link DataCollection}. Use the
 * {@link #getEntries()} method to get at the actual entry list. There are also
 * convenience methods for looking up entries by name rather than index (a bit
 * like a {@link Map}).
 * 
 * @author David Megginson
 */
public interface DataRecord extends Parcelable {

  /**
   * Return a read-only list of entries in this record.
   * 
   * @return a possibly-empty list of entries.
   */
  public abstract List<DataEntry> getEntries();

  /**
   * Return the first column with the specified name.
   * 
   * @param name
   *            the column name.
   * @return the data entry, or null if it does not exist.
   */
  public abstract DataEntry get(String name);

  /**
   * Return the nth column with the specified name.
   * 
   * @param name
   *            the column name.
   * @param index
   *            the column index, zero-based (counting only columns with the
   *            same name)
   * @return the matching entry, or null if it does not exist.
   */
  public abstract DataEntry get(String name, int index);

  /**
   * Return the number of entries with the specified name.
   * 
   * @param name
   *            the column name.
   * @return the number of entries.
   */
  public abstract int size(String name);

}




Java Source Code List

com.megginson.sloop.activities.ActivitiesUtil.java
com.megginson.sloop.activities.AddressActionProvider.java
com.megginson.sloop.activities.BookmarkEditActivity.java
com.megginson.sloop.activities.BookmarkListActivity.java
com.megginson.sloop.activities.InfoBarFragment.java
com.megginson.sloop.activities.MainActivity.java
com.megginson.sloop.activities.MainDisplayFragment.java
com.megginson.sloop.activities.TextFilterFragment.java
com.megginson.sloop.activities.package-info.java
com.megginson.sloop.model.Bookmark.java
com.megginson.sloop.model.DataCollection.java
com.megginson.sloop.model.DataEntry.java
com.megginson.sloop.model.DataRecord.java
com.megginson.sloop.model.Util.java
com.megginson.sloop.model.ValueFilter.java
com.megginson.sloop.model.impl.ContainsStringFilter.java
com.megginson.sloop.model.impl.DataCollectionIO.java
com.megginson.sloop.model.impl.DataCollectionImpl.java
com.megginson.sloop.model.impl.DataEntryImpl.java
com.megginson.sloop.model.impl.DataRecordImpl.java
com.megginson.sloop.model.impl.EqualsStringFilter.java
com.megginson.sloop.model.impl.package-info.java
com.megginson.sloop.model.package-info.java
com.megginson.sloop.ui.BookmarkListAdapter.java
com.megginson.sloop.ui.DataCollectionLoader.java
com.megginson.sloop.ui.DataCollectionPagerAdapter.java
com.megginson.sloop.ui.DataCollectionResult.java
com.megginson.sloop.ui.DataRecordFragment.java
com.megginson.sloop.ui.DataRecordListAdapter.java
com.megginson.sloop.ui.package-info.java