Package com.mparticle.segmentation
Class Segment
- java.lang.Object
-
- com.mparticle.segmentation.Segment
-
public class Segment extends java.lang.ObjectThis 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.intgetId()Retrieve the unique segment ID.java.lang.StringgetName()Retrieve the display name for this Segment, configured via the mParticle web console.java.lang.StringtoString()Retrieve a readable summary of this Segment.
-
-
-
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:
toStringin classjava.lang.Object- Returns:
- Segment summary
-
-