Class GalleryMetadataPartitioner

java.lang.Object
io.github.yvasyliev.forwarder.telegram.reddit.util.GalleryMetadataPartitioner

public class GalleryMetadataPartitioner extends Object
Partitions gallery metadata items from a Reddit post into smaller lists of a specified size.
  • Constructor Details

    • GalleryMetadataPartitioner

      public GalleryMetadataPartitioner(int partitionSize)
  • Method Details

    • partition

      public List<List<Link.Metadata>> partition(Link post)
      Partitions the gallery metadata items of the given Reddit post.
      Parameters:
      post - the Reddit post containing gallery data
      Returns:
      a list of lists, where each inner list contains a partition of metadata items