Package com.mparticle.segmentation
Class Segment
- java.lang.Object
-
- com.mparticle.segmentation.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.
-
-
-
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 classjava.lang.Object
- Returns:
- Segment summary
-
-