-
public final class GroupChannelCollection extends BaseCollection
Collection that handles channel lists, also supporting local caching.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
GroupChannelCollection.Builder
A builder to create the GroupChannelCollection.
-
Field Summary
Fields Modifier and Type Field Description private final Comparator<GroupChannel>
groupChannelComparator
-
Method Summary
Modifier and Type Method Description static Comparator<GroupChannel>
getGroupChannelComparator(@NonNull() GroupChannelListQuery.Order groupChannelListQueryOrder)
Returns a new < for sorting group channels using the GroupChannelListQuery.Order. static Comparator<GroupChannel>
getGroupChannelComparator(@NonNull() GroupChannelListQuery.Order groupChannelListQueryOrder)
Returns a new < for sorting group channels using the GroupChannelListQuery.Order. List<GroupChannel>
getChannelList()
Returns < of total channel list. boolean
hasMore()
Returns whether there's more data to load. void
dispose()
Disposes current GroupChannelCollection and stops all events from being received. void
loadMore(@Nullable() OnChannelLoadResultHandler handler)
Loads next channel lists, depending on the GroupChannelListQuery.Order set in the current collection. void
setGroupChannelCollectionHandler(@Nullable() GroupChannelCollectionHandler handler)
Sets the channel collection handler to be used for this GroupChannelCollection. Comparator<GroupChannel>
getComparator()
Returns a new < for sorting group channels using the GroupChannelListQuery.Order set in this collection. -
-
Method Detail
-
getGroupChannelComparator
static Comparator<GroupChannel> getGroupChannelComparator(@NonNull() GroupChannelListQuery.Order groupChannelListQueryOrder)
Returns a new < for sorting group channels using the GroupChannelListQuery.Order.
- Parameters:
groupChannelListQueryOrder
- GroupChannelListQuery.Order to be used in sorting group channels.
-
getGroupChannelComparator
static Comparator<GroupChannel> getGroupChannelComparator(@NonNull() GroupChannelListQuery.Order groupChannelListQueryOrder)
Returns a new < for sorting group channels using the GroupChannelListQuery.Order.
- Parameters:
groupChannelListQueryOrder
- GroupChannelListQuery.Order to be used in sorting group channels.
-
getChannelList
List<GroupChannel> getChannelList()
Returns < of total channel list.
-
hasMore
boolean hasMore()
Returns whether there's more data to load.
-
dispose
void dispose()
Disposes current GroupChannelCollection and stops all events from being received.
-
loadMore
void loadMore(@Nullable() OnChannelLoadResultHandler handler)
Loads next channel lists, depending on the GroupChannelListQuery.Order set in the current collection.
- Parameters:
handler
- OnChannelLoadResultHandler to receive the next channel list.
-
setGroupChannelCollectionHandler
void setGroupChannelCollectionHandler(@Nullable() GroupChannelCollectionHandler handler)
Sets the channel collection handler to be used for this GroupChannelCollection.
- Parameters:
handler
- GroupChannelCollectionHandler.
-
getComparator
Comparator<GroupChannel> getComparator()
Returns a new < for sorting group channels using the GroupChannelListQuery.Order set in this collection.
-
-
-
-