org.apache.commons.collections.map.LinkedMap Java Examples

The following examples show how to use org.apache.commons.collections.map.LinkedMap. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FeedsActivity.java    From rss with GNU General Public License v3.0 6 votes vote down vote up
@Override
protected
void onStop()
{
    super.onStop();

    // Write the read items set to file.
    ObjectIO out = new ObjectIO(this, READ_ITEMS);
    out.write(mReadItemTimes);

    // Write the index file to disk.
    out.setNewFileName(INDEX);
    out.write(m_index);

    // Write the favourites list to file.
    AdapterFeedItems adapter = ListFragmentTag.getFavouritesAdapter(this);
    LinkedMap favourites = adapter.getMap();

    out.setNewFileName(FAVOURITES);
    out.write(favourites);

    setServiceIntent(ALARM_SERVICE_START);
}
 
Example #2
Source File: TableDisplay.java    From beakerx with Apache License 2.0 6 votes vote down vote up
public static List<Map<String, Object>> getValuesAsRows(List<List<?>> values, List<String> columns) {
  List<Map<String, Object>> rows = new ArrayList<Map<String, Object>>();
  if (columns != null && values != null) {

    for (List<?> value : values) {
      Map<String, Object> m = new LinkedMap();
      for (int c = 0; c < columns.size(); c++) {
        if (value.size() > c)
          m.put(columns.get(c), value.get(c));
      }
      rows.add(m);
    }
  } else {
    throw new IllegalArgumentException("Method 'getValuesAsRows' doesn't supported for this table");
  }
  return rows;
}
 
Example #3
Source File: FlinkKafkaConsumerBase.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@VisibleForTesting
LinkedMap getPendingOffsetsToCommit() {
	return pendingOffsetsToCommit;
}
 
Example #4
Source File: FlinkPulsarSource.java    From pulsar-flink with Apache License 2.0 4 votes vote down vote up
public LinkedMap getPendingOffsetsToCommit() {
    return pendingOffsetsToCommit;
}
 
Example #5
Source File: FlinkKafkaConsumerBase.java    From flink with Apache License 2.0 4 votes vote down vote up
@VisibleForTesting
LinkedMap getPendingOffsetsToCommit() {
	return pendingOffsetsToCommit;
}
 
Example #6
Source File: FlinkKafkaConsumerBase.java    From flink with Apache License 2.0 4 votes vote down vote up
@VisibleForTesting
LinkedMap getPendingOffsetsToCommit() {
	return pendingOffsetsToCommit;
}
 
Example #7
Source File: LinkedMapAdapter.java    From rss with GNU General Public License v3.0 4 votes vote down vote up
LinkedMapAdapter(Map<K, V> map)
{
    m_map = null == map ? new LinkedMap(1) : new LinkedMap(map);
    notifyDataSetChanged();
}
 
Example #8
Source File: LinkedMapAdapter.java    From rss with GNU General Public License v3.0 4 votes vote down vote up
public
LinkedMap getMap()
{
    return (LinkedMap) m_map.clone();
}