com.ljs.ootp.extract.html.rating.Scale Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ootp-extract Show documentation
Show all versions of ootp-extract Show documentation
Extraction of player information from OOTP HTML player pages
The newest version!
package com.ljs.ootp.extract.html.rating;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonSubTypes.Type;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.ljs.ootp.extract.html.ootp5.rating.PotentialRating;
import com.ljs.ootp.extract.html.ootp5.rating.ZeroToTen;
import com.ljs.ootp.extract.html.ootp6.rating.OneToTen;
import com.ljs.ootp.extract.html.ootp6.rating.OneToTwenty;
import com.ljs.ootp.extract.html.ootp6.rating.TwoToEight;
/**
*
* @author lstephen
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME)
@JsonSubTypes({
@Type(ZeroToTen.class),
@Type(OneToTen.class),
@Type(PotentialRating.RatingScale.class),
@Type(OneToOneHundred.class),
@Type(OneToTwenty.class),
@Type(TwoToEight.class)
})
public interface Scale {
Rating> parse(String s);
Rating normalize(T value);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy