41 lines
990 B
Java
41 lines
990 B
Java
|
package com.airbnb.lottie.model;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public class Marker {
|
||
|
private static final String CARRIAGE_RETURN = "\r";
|
||
|
public final float durationFrames;
|
||
|
private final String name;
|
||
|
public final float startFrame;
|
||
|
|
||
|
public Marker(String str, float f, float f2) {
|
||
|
this.name = str;
|
||
|
this.durationFrames = f2;
|
||
|
this.startFrame = f;
|
||
|
}
|
||
|
|
||
|
public boolean matchesName(String str) {
|
||
|
if (this.name.equalsIgnoreCase(str)) {
|
||
|
return true;
|
||
|
}
|
||
|
if (this.name.endsWith(CARRIAGE_RETURN)) {
|
||
|
String str2 = this.name;
|
||
|
if (str2.substring(0, str2.length() - 1).equalsIgnoreCase(str)) {
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
public float getStartFrame() {
|
||
|
return this.startFrame;
|
||
|
}
|
||
|
|
||
|
public String getName() {
|
||
|
return this.name;
|
||
|
}
|
||
|
|
||
|
public float getDurationFrames() {
|
||
|
return this.durationFrames;
|
||
|
}
|
||
|
}
|