Class AffinityPopulator<SOURCE extends java.util.Map.Entry<java.lang.String,​Affinity>,​TARGET extends AffinityData>

  • All Implemented Interfaces:
    Populator<SOURCE,​TARGET>

    public class AffinityPopulator<SOURCE extends java.util.Map.Entry<java.lang.String,​Affinity>,​TARGET extends AffinityData>
    extends java.lang.Object
    implements Populator<SOURCE,​TARGET>
    Default affinity populator that populates common affinity attributes : score, recentScore, recentViewCount.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void populate​(SOURCE source, TARGET affinityData)
      Populate the target instance with values from the source instance.
      • Methods inherited from class java.lang.Object

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

      • AffinityPopulator

        public AffinityPopulator()
    • Method Detail

      • populate

        public void populate​(SOURCE source,
                             TARGET affinityData)
        Description copied from interface: Populator
        Populate the target instance with values from the source instance.
        Specified by:
        populate in interface Populator<SOURCE extends java.util.Map.Entry<java.lang.String,​Affinity>,​TARGET extends AffinityData>
        Parameters:
        source - the source object
        affinityData - the target to fill