Search in sources :

Example 6 with LongIntMap

use of de.danoeh.antennapod.core.util.LongIntMap in project AntennaPod by AntennaPod.

the class LongLongMapTest method testOverwrite.

public void testOverwrite() {
    LongIntMap map = new LongIntMap();
    map.put(17, 42);
    assertEquals(1, map.size());
    assertEquals("LongLongMap{17=42}", map.toString());
    assertEquals(42, map.get(17));
    map.put(17, 23);
    assertEquals(1, map.size());
    assertEquals("LongLongMap{17=23}", map.toString());
    assertEquals(23, map.get(17));
}
Also used : LongIntMap(de.danoeh.antennapod.core.util.LongIntMap)

Aggregations

LongIntMap (de.danoeh.antennapod.core.util.LongIntMap)6 Cursor (android.database.Cursor)2 MergeCursor (android.database.MergeCursor)1 ArrayMap (android.support.v4.util.ArrayMap)1 Log (android.util.Log)1 Chapter (de.danoeh.antennapod.core.feed.Chapter)1 Feed (de.danoeh.antennapod.core.feed.Feed)1 FeedImage (de.danoeh.antennapod.core.feed.FeedImage)1 FeedItem (de.danoeh.antennapod.core.feed.FeedItem)1 FeedMedia (de.danoeh.antennapod.core.feed.FeedMedia)1 FeedPreferences (de.danoeh.antennapod.core.feed.FeedPreferences)1 ID3Chapter (de.danoeh.antennapod.core.feed.ID3Chapter)1 SimpleChapter (de.danoeh.antennapod.core.feed.SimpleChapter)1 VorbisCommentChapter (de.danoeh.antennapod.core.feed.VorbisCommentChapter)1 UserPreferences (de.danoeh.antennapod.core.preferences.UserPreferences)1 DownloadStatus (de.danoeh.antennapod.core.service.download.DownloadStatus)1 LongList (de.danoeh.antennapod.core.util.LongList)1 DownloadStatusComparator (de.danoeh.antennapod.core.util.comparator.DownloadStatusComparator)1 FeedItemPubdateComparator (de.danoeh.antennapod.core.util.comparator.FeedItemPubdateComparator)1 PlaybackCompletionDateComparator (de.danoeh.antennapod.core.util.comparator.PlaybackCompletionDateComparator)1