Package 

Class PollVotesSort

  • All Implemented Interfaces:
    java.util.Comparator

    
    public final class PollVotesSort
    extends Sort<PollVoteData>
                        

    Represents a sort specification for poll votes.

    This class allows you to specify how poll votes should be sorted when querying them from the Stream Feeds API.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final SortDirection direction
      private final SortField<PollVoteData> field
    • Method Summary

      Modifier and Type Method Description
      final SortDirection getDirection()
      final SortField<PollVoteData> getField()
      • Methods inherited from class io.getstream.feeds.android.client.api.state.query.PollVotesSort

        compare, toDto
      • Methods inherited from class io.getstream.android.core.api.sort.Sort

        reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PollVotesSort

        PollVotesSort(PollVotesSortField field, SortDirection direction)
        Parameters:
        field - The field by which to sort the poll votes.
        direction - The direction of the sort operation (ascending or descending).