Class AtomOffsetFeedPage<PAYLOAD>
- java.lang.Object
-
- no.skatteetaten.fastsetting.formueinntekt.felles.feed.client.atom.offset.AtomOffsetFeedPage<PAYLOAD>
-
- All Implemented Interfaces:
FeedPage<AtomOffsetFeedLocation,AtomOffsetFeedEntry<PAYLOAD>>
public class AtomOffsetFeedPage<PAYLOAD> extends Object implements FeedPage<AtomOffsetFeedLocation,AtomOffsetFeedEntry<PAYLOAD>>
-
-
Constructor Summary
Constructors Constructor Description AtomOffsetFeedPage(com.rometools.rome.feed.synd.SyndFeed feed, boolean reversed, ToLongFunction<String> offsetResolver, BiFunction<com.rometools.rome.feed.synd.SyndFeed,com.rometools.rome.feed.synd.SyndEntry,PAYLOAD> payloadResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AtomOffsetFeedEntry<PAYLOAD>>getEntries()List<AtomOffsetFeedEntry<PAYLOAD>>getEntriesAfter(AtomOffsetFeedLocation location)List<AtomOffsetFeedEntry<PAYLOAD>>getEntriesBetween(AtomOffsetFeedLocation lower, AtomOffsetFeedLocation upper)List<AtomOffsetFeedEntry<PAYLOAD>>getEntriesUntil(AtomOffsetFeedLocation location)AtomOffsetFeedLocationgetLocation()Optional<AtomOffsetFeedLocation>getNextLocation()Optional<AtomOffsetFeedLocation>getPreviousLocation()booleanhasLocation(AtomOffsetFeedLocation location)Optional<String>toDisplayString()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.feed.api.FeedPage
getPageLocation, hasNextLocation, hasPreviousLocation
-
-
-
-
Constructor Detail
-
AtomOffsetFeedPage
AtomOffsetFeedPage(com.rometools.rome.feed.synd.SyndFeed feed, boolean reversed, ToLongFunction<String> offsetResolver, BiFunction<com.rometools.rome.feed.synd.SyndFeed,com.rometools.rome.feed.synd.SyndEntry,PAYLOAD> payloadResolver)
-
-
Method Detail
-
getLocation
public AtomOffsetFeedLocation getLocation()
- Specified by:
getLocationin interfaceFeedPage<AtomOffsetFeedLocation,AtomOffsetFeedEntry<PAYLOAD>>
-
getPreviousLocation
public Optional<AtomOffsetFeedLocation> getPreviousLocation()
- Specified by:
getPreviousLocationin interfaceFeedPage<AtomOffsetFeedLocation,AtomOffsetFeedEntry<PAYLOAD>>
-
getNextLocation
public Optional<AtomOffsetFeedLocation> getNextLocation()
- Specified by:
getNextLocationin interfaceFeedPage<AtomOffsetFeedLocation,AtomOffsetFeedEntry<PAYLOAD>>
-
getEntries
public List<AtomOffsetFeedEntry<PAYLOAD>> getEntries()
- Specified by:
getEntriesin interfaceFeedPage<AtomOffsetFeedLocation,AtomOffsetFeedEntry<PAYLOAD>>
-
hasLocation
public boolean hasLocation(AtomOffsetFeedLocation location)
- Specified by:
hasLocationin interfaceFeedPage<AtomOffsetFeedLocation,AtomOffsetFeedEntry<PAYLOAD>>
-
getEntriesAfter
public List<AtomOffsetFeedEntry<PAYLOAD>> getEntriesAfter(AtomOffsetFeedLocation location)
- Specified by:
getEntriesAfterin interfaceFeedPage<AtomOffsetFeedLocation,AtomOffsetFeedEntry<PAYLOAD>>
-
getEntriesUntil
public List<AtomOffsetFeedEntry<PAYLOAD>> getEntriesUntil(AtomOffsetFeedLocation location)
- Specified by:
getEntriesUntilin interfaceFeedPage<AtomOffsetFeedLocation,AtomOffsetFeedEntry<PAYLOAD>>
-
getEntriesBetween
public List<AtomOffsetFeedEntry<PAYLOAD>> getEntriesBetween(AtomOffsetFeedLocation lower, AtomOffsetFeedLocation upper)
- Specified by:
getEntriesBetweenin interfaceFeedPage<AtomOffsetFeedLocation,AtomOffsetFeedEntry<PAYLOAD>>
-
toDisplayString
public Optional<String> toDisplayString()
- Specified by:
toDisplayStringin interfaceFeedPage<AtomOffsetFeedLocation,AtomOffsetFeedEntry<PAYLOAD>>
-
-