Class SegmentsAndScores

java.lang.Object
org.apache.unomi.api.segments.SegmentsAndScores
All Implemented Interfaces:
Serializable

public class SegmentsAndScores extends Object implements Serializable
A combination of Segment and scores (usually associated with a Profile).
See Also:
  • Constructor Details

    • SegmentsAndScores

      public SegmentsAndScores(Set<String> segments, Map<String,Integer> scores)
      Instantiates a new SegmentsAndScores.
      Parameters:
      segments - the set of segment identifiers
      scores - the scores as a Map of scoring name - associated score pairs
  • Method Details

    • getSegments

      public Set<String> getSegments()
      Retrieves the segments identifiers.
      Returns:
      the segments identifiers
    • getScores

      public Map<String,Integer> getScores()
      Retrieves the scores as a Map of scoring name - associated score pairs.
      Returns:
      the scores as a Map of scoring name - associated score pairs