All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ljs.ootp.extract.html.rating.Scale Maven / Gradle / Ivy

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