Class SegmentMembership


  • public class SegmentMembership
    extends java.lang.Object
    This class is returned as response from a user segments call. It contains segment ids, expiration, and a flag indicating whether it is expired.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCommaSeparatedIds()
      Returns a String with a comma separated list of user segment IDs.
      java.util.ArrayList<Segment> getSegments()
      The list of user segment IDs.
      java.lang.String toString()
      Returns a String with a comma separated list of user segment IDs.
      • Methods inherited from class java.lang.Object

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

      • SegmentMembership

        public SegmentMembership​(@NonNull
                                 java.util.ArrayList<Segment> ids)
    • Method Detail

      • getSegments

        @NonNull
        public java.util.ArrayList<Segment> getSegments()
        The list of user segment IDs.
      • toString

        @NonNull
        public java.lang.String toString()
        Returns a String with a comma separated list of user segment IDs.
        Overrides:
        toString in class java.lang.Object
      • getCommaSeparatedIds

        @NonNull
        public java.lang.String getCommaSeparatedIds()
        Returns a String with a comma separated list of user segment IDs.