blob: dba70a9ec71ac3d4d81d239308d0f1ad7547b223 [file] [log] [blame]
package com.airbnb.lottie.model.content;
import com.airbnb.lottie.LottieDrawable;
import com.airbnb.lottie.animation.content.Content;
import com.airbnb.lottie.animation.content.ContentGroup;
import com.airbnb.lottie.model.layer.BaseLayer;
import java.util.Arrays;
import java.util.List;
public class ShapeGroup implements ContentModel {
private final String name;
private final List<ContentModel> items;
public ShapeGroup(String name, List<ContentModel> items) {
this.name = name;
this.items = items;
}
public String getName() {
return name;
}
public List<ContentModel> getItems() {
return items;
}
@Override public Content toContent(LottieDrawable drawable, BaseLayer layer) {
return new ContentGroup(drawable, layer, this);
}
@Override public String toString() {
return "ShapeGroup{" + "name='" + name + "\' Shapes: " + Arrays.toString(items.toArray()) + '}';
}
}