Kotlin, Kotlin Design Patterns, Kotlin Flyweight, Kotlin Flyweight Pattern.
Moreover, you’re getting the images from the Web by the URL , using Flyweight here will also save time and limit internet consumption. Let’s implement it: Flyweight class diagram In Flyweight we usually call the creating class Factory . Application will depend on both the Image and ImageFactory as