Class Segment


  • public class Segment
    extends java.lang.Object
    This class represents a single Segment of which one or more users may be a member.
    • Constructor Summary

      Constructors 
      Constructor Description
      Segment​(int id, java.lang.String name, java.lang.String endpointBlob)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] getEndpoints()
      Retrieve the endpoint IDs to which this Segment is configured to forward.
      int getId()
      Retrieve the unique segment ID.
      java.lang.String getName()
      Retrieve the display name for this Segment, configured via the mParticle web console.
      java.lang.String toString()
      Retrieve a readable summary of this Segment.
      • Methods inherited from class java.lang.Object

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

      • Segment

        public Segment​(int id,
                       @NonNull
                       java.lang.String name,
                       @NonNull
                       java.lang.String endpointBlob)
    • Method Detail

      • getId

        public int getId()
        Retrieve the unique segment ID.
        Returns:
        an integer ID
      • getName

        @Nullable
        public java.lang.String getName()
        Retrieve the display name for this Segment, configured via the mParticle web console.
        Returns:
      • getEndpoints

        @NonNull
        public java.lang.String[] getEndpoints()
        Retrieve the endpoint IDs to which this Segment is configured to forward.
        Returns:
        an array of IDs
      • toString

        @NonNull
        public java.lang.String toString()
        Retrieve a readable summary of this Segment.
        Overrides:
        toString in class java.lang.Object
        Returns:
        Segment summary