content: package com.airbnb.lottie.model;
  
  import static androidx.annotation.RestrictTo.Scope.LIBRARY;
  
  import androidx.annotation.RestrictTo;
  
  import com.airbnb.lottie.model.content.ShapeGroup;
  
  import java.util.List;
  
  @RestrictTo(LIBRARY)
  public class FontCharacter {
  
    public static int hashFor(char character, String fontFamily, String style) {
      int result = (int) character;
      result = 31 * result + fontFamily.hashCode();
      result = 31 * result + style.hashCode();
      return result;
    }
  
    private final List<ShapeGroup> shapes;
    private final char character;
    private final double size;
    private final double width;
    private final String style;
    private final String fontFamily;
  
    public FontCharacter(List<ShapeGroup> shapes, char character, double size,
        double width, String style, String fontFamily) {
      this.shapes = shapes;
      this.character = character;
      this.size = size;
      this.width = width;
      this.style = style;
      this.fontFamily = fontFamily;
    }
  
    public List<ShapeGroup> getShapes() {
      return shapes;
    }
  
    public double getWidth() {
      return width;
    }
  
    @Override public int hashCode() {
      return hashFor(character, fontFamily, style);
    }
  }
  